-
Notifications
You must be signed in to change notification settings - Fork 146
52 lines (49 loc) · 1.13 KB
/
bazel.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
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Bazel
on:
push:
branches: [main]
paths:
- '.github/workflows/bazel.yml'
- 'Sources/**/*.[ch]'
- 'Sources/**/*.swift'
- 'Tests/**/*.swift'
- 'Tests/**/*.ya?ml'
- '**/BUILD'
- 'MODULE.bazel'
- 'WORKSPACE'
- '.bazelrc'
- '.bazelversion'
pull_request:
paths:
- '.github/workflows/bazel.yml'
- 'Sources/**/*.[ch]'
- 'Sources/**/*.swift'
- 'Tests/**/*.swift'
- 'Tests/**/*.ya?ml'
- '**/BUILD'
- 'MODULE.bazel'
- 'WORKSPACE'
- '.bazelrc'
- '.bazelversion'
concurrency:
group: bazel-${{ github.ref }}
cancel-in-progress: true
jobs:
macOS:
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- name: Apple tests
run: bazelisk test //Tests/...
Linux:
strategy:
matrix:
tag: ['5.7', '5.8', '5.9', '5.10']
runs-on: ubuntu-latest
container:
image: swift:${{ matrix.tag }}-focal
steps:
- uses: actions/checkout@v4
- uses: bazelbuild/setup-bazelisk@v3
- name: Yams tests
run: bazel test --test_output=all //Tests:UnitTests