11name : Bazel Jobs
22
3- # Reusable Bazel CI workflow for one platform. This workflow is called by
4- # bazel-ci-matrix.yml with a platform name and runner.
53on :
64 workflow_call :
75 inputs :
@@ -20,17 +18,15 @@ permissions:
2018 contents : read
2119
2220jobs :
23- # Aggregate the per-platform Bazel checks into one stable required job.
24- # GitHub Actions job graphs are static, so Bazel still runs inside each
25- # declared job.
26- bazel-required :
21+ required :
2722 if : ${{ always() }}
2823 needs :
2924 - setup
30- - unit-main
31- - unit-coreth
32- - unit-subnet-evm
33- - e2e
25+ - avalanchego-test-unit
26+ - coreth-test-unit
27+ - evm-test-unit
28+ - subnet-evm-test-unit
29+ - avalanchego-test-e2e
3430 runs-on : ${{ inputs.runner }}
3531 steps :
3632 - name : Fail unless all needed jobs succeeded
@@ -52,50 +48,61 @@ jobs:
5248 exit 1
5349 fi
5450
55- # Prepare Bazel CI for this platform before the later jobs run. Similar in intent to
56- # setup-go, this job uses setup-bazel to check Bazel metadata and prepare cache
57- # state for the dependencies that subsequent jobs are expected to need. That shifts
58- # network access into one upfront step instead of having each later job discover
59- # missing dependencies on its own.
6051 setup :
52+ name : setup
6153 runs-on : ${{ inputs.runner }}
6254 steps :
6355 - uses : actions/checkout@v5
6456 - uses : ./.github/actions/setup-bazel
6557 with :
6658 initial-setup : true
6759
68- unit-main :
60+ avalanchego-test-unit :
61+ name : avalanchego-test-unit
6962 needs : setup
7063 runs-on : ${{ inputs.runner }}
7164 steps :
7265 - uses : actions/checkout@v5
7366 - uses : ./.github/actions/setup-bazel
74- - name : Run unit tests with Bazel
67+ - name : Run avalanchego unit tests with Bazel
7568 shell : bash
76- run : ./scripts/run_task.sh bazel- test-main
69+ run : ./scripts/run_task.sh avalanchego: test-unit-bazel
7770
78- unit-coreth :
71+ coreth-test-unit :
72+ name : coreth-test-unit
7973 needs : setup
8074 runs-on : ${{ inputs.runner }}
8175 steps :
8276 - uses : actions/checkout@v5
8377 - uses : ./.github/actions/setup-bazel
8478 - name : Run coreth unit tests with Bazel
8579 shell : bash
86- run : ./scripts/run_task.sh bazel- test-coreth
80+ run : ./scripts/run_task.sh coreth: test-unit-bazel
8781
88- unit-subnet-evm :
82+ evm-test-unit :
83+ name : evm-test-unit
84+ needs : setup
85+ runs-on : ${{ inputs.runner }}
86+ steps :
87+ - uses : actions/checkout@v5
88+ - uses : ./.github/actions/setup-bazel
89+ - name : Run evm unit tests with Bazel
90+ shell : bash
91+ run : ./scripts/run_task.sh evm:test-unit-bazel
92+
93+ subnet-evm-test-unit :
94+ name : subnet-evm-test-unit
8995 needs : setup
9096 runs-on : ${{ inputs.runner }}
9197 steps :
9298 - uses : actions/checkout@v5
9399 - uses : ./.github/actions/setup-bazel
94100 - name : Run subnet-evm unit tests with Bazel
95101 shell : bash
96- run : ./scripts/run_task.sh bazel- test-subnet-evm
102+ run : ./scripts/run_task.sh subnet-evm: test-unit-bazel
97103
98- e2e :
104+ avalanchego-test-e2e :
105+ name : avalanchego-test-e2e
99106 needs : setup
100107 runs-on : ${{ inputs.runner }}
101108 steps :
@@ -104,7 +111,7 @@ jobs:
104111 - name : Run e2e tests with Bazel-built binary
105112 uses : ./.github/actions/run-monitored-tmpnet-cmd
106113 with :
107- run : ./scripts/run_task.sh bazel- test-e2e-ci
114+ run : ./scripts/run_task.sh avalanchego: test-e2e-bazel -ci
108115 artifact_prefix : e2e-bazel-${{ inputs.platform_name }}
109116 filter_by_owner : avalanchego-e2e
110117 prometheus_url : ${{ secrets.PROMETHEUS_URL || '' }}
0 commit comments