Skip to content
File

Blob: .github/workflows/coverage.yml

yaml45 lines
1name: Coverage
2 
3on:
4 pull_request:
5 merge_group:
6 push:
7 branches:
8 - main
9 
10concurrency:
11 group: coverage.yml-${{ github.event.pull_request.number || github.run_id }}
12 cancel-in-progress: true
13 
14permissions:
15 # Read repo
16 contents: read
17 # Read/write artifacts
18 actions: write
19 
20jobs:
21 coverage-linux:
22 uses: ./.github/workflows/_bazel.yml
23 with:
24 image: ubuntu-22.04-16core
25 os_name: linux
26 arch_name: 'X64'
27 suffix: 'coverage'
28 # Don't use ci-test here because it enables --remote_download_minimal which prevents
29 # coverage data from being fetched from cache. The coverage config already sets
30 # --test_env=CI=true and --config=wpt-test which are the relevant parts of ci-test.
31 # Use ci-linux-common instead of ci-linux to avoid overriding coverage test_tag_filters
32 # (ci-linux sets test_tag_filters that would include container tests which require docker)
33 extra_bazel_args: '--config=ci-linux-common --config=ci-limit-storage --config=coverage --test_env=CI=true --config=wpt-test'
34 upload_test_logs: true
35 upload_binary: false
36 build_container_images: false
37 run_coverage: true
38 run_tests: false
39 test_target: "//src/workerd/..."
40 secrets:
41 BAZEL_CACHE_KEY: ${{ secrets.BAZEL_CACHE_KEY }}
42 WORKERS_MIRROR_URL: ${{ secrets.WORKERS_MIRROR_URL }}
43 CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
44 GOOGLESOURCE_COOKIE: ${{ secrets.GOOGLESOURCE_COOKIE }}