-
Notifications
You must be signed in to change notification settings - Fork 13
56 lines (47 loc) · 1.65 KB
/
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
on:
pull_request:
push:
branches: [main]
concurrency: # cancel previous workflow run if one exists.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: macos-14
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: ./.github/actions/setup-ios
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- run: task build
run-tests:
runs-on: macos-14
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: ./.github/actions/setup-ios
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- run: task test
- run: task coverage
- name: Upload coverage for analysis
uses: coverallsapp/github-action@3dfc5567390f6fa9267c0ee9c251e4c8c3f18949 # v2
with:
file: .build/lcov.info
env:
# try and speedup the action by homebrew not having to do more then it needs when installing the coveralls tool
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: true
compile-apps:
runs-on: macos-14
strategy:
fail-fast: false # if one build fails, dont stop trying to finish the other.
matrix:
os: ["ios"]
package-manager: ["cocoapods", "spm"]
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: ./.github/actions/setup-ios
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Compile ${{ matrix.os }} app, using package manager ${{ matrix.package-manager }}
working-directory: app/${{ matrix.os }}
run: task app:build_${{ matrix.package-manager }}