-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (60 loc) · 1.98 KB
/
test.yml
File metadata and controls
63 lines (60 loc) · 1.98 KB
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
name: test
on:
push:
branches:
- main
- master
- develop
- ci
pull_request: # any pull request against any branch
workflow_dispatch: # manual trigger
schedule:
# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌───────────── day of the month (1 - 31)
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
# │ │ │ │ │
# * * * * *
- cron: "30 14 * * *" # every day at 14:30 UTC (6:30 PST, 7:30 PDT)
env:
TERM: xterm-256color
DEVELOPER_DIR: /Applications/Xcode_${{ vars.XCODE_VERSION }}.app/Contents/Developer
jobs:
test-codecov:
name: Test (macOS)
runs-on: ${{ vars.MACOS }}
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Bootstrap
uses: ./.github/actions/bootstrap
- name: Test with Codecov
run: make test-codecov -C ComposeUI
- name: Upload code coverage
uses: codecov/codecov-action@v4.5.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ComposeUI/.build/debug/codecov/coverage.lcov
disable_search: true
flags: ComposeUI
name: ComposeUI
fail_ci_if_error: true
test:
name: Test
strategy:
fail-fast: false
matrix:
platform: [iOS, tvOS] # disable `visionOS` for now as it hangs on GitHub Actions
timeout-minutes: 30
runs-on: ${{ vars.MACOS }}
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Bootstrap
uses: ./.github/actions/bootstrap
# - name: Download visionOS simulator
# if: matrix.platform == 'visionOS'
# run: xcodebuild -downloadPlatform visionOS
- name: Test
run: make test-${{ matrix.platform }} -C ComposeUI