forked from jpsim/Yams
-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (68 loc) · 1.73 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Bazel
on:
push:
branches: [main]
paths:
- 'Sources/**/*.[ch]'
- 'Sources/**/*.swift'
- 'Tests/**/*.swift'
- 'Tests/**/*.ya?ml'
- '**/BUILD'
- 'WORKSPACE'
pull_request:
paths:
- 'Sources/**/*.[ch]'
- 'Sources/**/*.swift'
- 'Tests/**/*.swift'
- 'Tests/**/*.ya?ml'
- '**/BUILD'
- 'WORKSPACE'
jobs:
MacOS:
runs-on: macos-12
steps:
- uses: actions/checkout@v2
- name: MacOS build test
if: always()
run: bazelisk test //Tests:macOSBuildTest
shell: bash
- name: WatchOS build test
if: always()
run: bazelisk test //Tests:watchOSBuildTest
shell: bash
- name: iOS build test
if: always()
run: bazelisk test //Tests:iOSBuildTest
shell: bash
- name: tvOS build test
if: always()
run: bazelisk test //Tests:tvOSBuildTest
shell: bash
- name: Yams tests
if: always()
run: bazelisk test //Tests:UnitTests
shell: bash
Linux:
strategy:
matrix:
tag: ['5.4', '5.5', '5.6']
runs-on: ubuntu-latest
container:
image: swift:${{ matrix.tag }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '^1.13.1' # The Go version to download (if necessary) and use.
- name: Setup Bazel
if: always()
run: go get github.com/bazelbuild/bazelisk
shell: bash
- name: Yams tests
if: always()
run: bazelisk test //Tests:UnitTests
shell: bash
- name: Yams tests logs
if: always()
run: cat bazel-out/k8-fastbuild/testlogs/Tests/UnitTests/test.log
shell: bash