-
Notifications
You must be signed in to change notification settings - Fork 32
134 lines (134 loc) · 4.95 KB
/
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
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# Portions of this file are generated by the build.
#
# Note:
# - Modification to values outside of the matrix strategy sections should
# persist.
# - Comments and custom formatting will be lost.
name: Continuous Integration
"on":
pull_request:
branches:
- main
merge_group: {}
schedule:
- cron: 14 11 * * *
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
all_ci_tests:
runs-on: ubuntu-latest
needs:
- tidy_and_test_matrix
- integration_test_matrix
if: ${{ always() }}
steps:
- uses: cgrindel/gha_join_jobs@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
integration_test_matrix:
strategy:
fail-fast: false
matrix:
include:
- test: '@@//bzlmod:e2e_test'
runner: ubuntu-22.04
- test: '@@//bzlmod:e2e_test'
runner: macos-13
- test: '@@//examples:firebase_example_test_bazel_.bazelversion'
runner: macos-13
- test: '@@//examples:google_maps_example_test_bazel_.bazelversion'
runner: macos-13
- test: '@@//examples:grpc_example_test_bazel_.bazelversion'
runner: ubuntu-22.04
- test: '@@//examples:grpc_example_test_bazel_.bazelversion'
runner: macos-13
- test: '@@//examples:interesting_deps_test_bazel_.bazelversion'
runner: macos-13
- test: '@@//examples:ios_sim_test_bazel_.bazelversion'
runner: macos-13
- test: '@@//examples:lottie_ios_example_test_bazel_.bazelversion'
runner: macos-13
- test: '@@//examples:messagekit_example_test_bazel_.bazelversion'
runner: macos-13
- test: '@@//examples:nimble_example_test_bazel_.bazelversion'
runner: macos-13
- test: '@@//examples:objc_code_test_bazel_.bazelversion'
runner: macos-13
- test: '@@//examples:phone_number_kit_test_bazel_.bazelversion'
runner: macos-13
- test: '@@//examples:pkg_manifest_minimal_test_bazel_.bazelversion'
runner: ubuntu-22.04
- test: '@@//examples:pkg_manifest_minimal_test_bazel_.bazelversion'
runner: macos-13
- test: '@@//examples:resources_example_test_bazel_.bazelversion'
runner: macos-13
- test: '@@//examples:shake_ios_example_test_bazel_.bazelversion'
runner: macos-13
- test: '@@//examples:snapkit_example_test_bazel_.bazelversion'
runner: macos-13
- test: '@@//examples:soto_example_test_bazel_.bazelversion'
runner: macos-13
- test: '@@//examples:stripe_example_test_bazel_.bazelversion'
runner: macos-13
- test: '@@//examples:symlink_example_test_bazel_.bazelversion'
runner: macos-13
- test: '@@//examples:tca_example_test_bazel_.bazelversion'
runner: macos-13
- test: '@@//examples:vapor_example_test_bazel_.bazelversion'
runner: ubuntu-22.04
- test: '@@//examples:vapor_example_test_bazel_.bazelversion'
runner: macos-13
- test: '@@//examples:xcmetrics_example_test_bazel_.bazelversion'
runner: macos-13
- test: '@@//release:archive_test'
runner: ubuntu-22.04
- test: '@@//release:archive_test'
runner: macos-13
runs-on: ${{ matrix.runner }}
env:
CC: clang
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/set_up_ubuntu
if: ${{ startsWith(matrix.runner, 'ubuntu') }}
with:
repo_name: rules_swift_package_manager
ubuntu_version: "22.04"
- uses: ./.github/actions/set_up_macos
if: ${{ startsWith(matrix.runner, 'macos') }}
with:
repo_name: rules_swift_package_manager
test_target: ${{ matrix.test }}
- uses: ./.github/actions/configure_remote_cache_auth
with:
buildbuddy_api_key: ${{ secrets.BUILDBUDDY_API_KEY }}
- uses: ./.github/actions/execute_test
with:
bzlmod_enabled: ${{ matrix.bzlmod_enabled }}
test_target: ${{ matrix.test }}
tidy_and_test_matrix:
strategy:
fail-fast: false
matrix:
runner:
- macos-13
- ubuntu-22.04
runs-on: ${{ matrix.runner }}
env:
CC: clang
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/set_up_ubuntu
if: ${{ startsWith(matrix.runner, 'ubuntu') }}
with:
repo_name: rules_swift_package_manager
ubuntu_version: "22.04"
- uses: ./.github/actions/set_up_macos
if: ${{ startsWith(matrix.runner, 'macos') }}
with:
repo_name: rules_swift_package_manager
- uses: ./.github/actions/configure_remote_cache_auth
with:
buildbuddy_api_key: ${{ secrets.BUILDBUDDY_API_KEY }}
- uses: ./.github/actions/tidy_and_test