-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (35 loc) · 857 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Continuous Integration
on:
pull_request:
branches: [ main ]
jobs:
ubuntu_build:
runs-on: ubuntu-22.04
env:
CC: clang
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: cgrindel/gha_set_up_bazel@v1
with:
repo_name: gha_join_jobs
- name: Test
shell: bash
run: |
bazelisk test //...
another_job:
runs-on: ubuntu-22.04
steps:
- name: Succeed
shell: bash
run: |
echo "All is well!"
all_tests:
runs-on: ubuntu-22.04
needs: [ubuntu_build, another_job]
if: ${{ always() }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: ./
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
checkout_ref: ${{ github.head_ref }}