-
Notifications
You must be signed in to change notification settings - Fork 4.8k
76 lines (70 loc) · 1.76 KB
/
mobile-ios_tests.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
name: ios_tests
permissions:
contents: read
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.head_ref || github.run_id }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
env:
if: ${{ github.repository == 'envoyproxy/envoy' }}
uses: ./.github/workflows/_env.yml
permissions:
contents: read
pull-requests: read
swifttests:
if: ${{ needs.env.outputs.mobile_ios_tests == 'true' }}
needs: env
permissions:
contents: read
packages: read
name: swift_tests
runs-on: macos-12
timeout-minutes: 120
steps:
- uses: actions/checkout@v4
- name: 'Install dependencies'
run: |
cd mobile
./ci/mac_ci_setup.sh
- name: 'Run swift library tests'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd mobile
./bazelw test \
--experimental_ui_max_stdouterr_bytes=10485760 \
--config=ios \
--build_tests_only \
--config=mobile-remote-ci-macos \
//test/swift/...
objctests:
if: ${{ needs.env.outputs.mobile_ios_tests == 'true' }}
needs: env
permissions:
contents: read
packages: read
name: c_and_objc_tests
runs-on: macos-12
timeout-minutes: 120
steps:
- uses: actions/checkout@v4
- name: 'Install dependencies'
run: |
cd mobile
./ci/mac_ci_setup.sh
- name: 'Run Objective-C library tests'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd mobile
./bazelw test \
--config=ios \
--build_tests_only \
--config=mobile-remote-ci-macos \
//test/objective-c/... \
//test/cc/unit:envoy_config_test