-
Notifications
You must be signed in to change notification settings - Fork 29
51 lines (44 loc) · 1.2 KB
/
integration.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
name: Integration
on:
pull_request:
branches:
- main
push:
branches:
- main
paths:
- ".github/workflows/integration.yml"
- "**/*.swift"
schedule:
# Every Sunday at 12am
- cron: '0 0 * * 0'
workflow_dispatch:
concurrency:
group: "integration-${{ github.head_ref || github.run_id }}"
cancel-in-progress: true
env:
DEVELOPER_DIR: /Applications/Xcode_16.1.app/Contents/Developer
jobs:
integration-test:
name: Integration Test
runs-on: macos-15
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: swift build --build-tests
- name: Test
run: swift test --skip-build --filter TMDbIntegrationTests --xunit-output junit.xml
env:
TMDB_API_KEY: ${{ secrets.TMDB_API_KEY }}
TMDB_USERNAME: ${{ secrets.TMDB_USERNAME }}
TMDB_PASSWORD: ${{ secrets.TMDB_PASSWORD }}
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
file: ./junit-swift-testing.xml
flags: integration-tests
verbose: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}