-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (35 loc) · 1.01 KB
/
test.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
name: Test
on:
push:
branches: [ "main" ]
paths:
- '**/*.swift'
pull_request:
branches: [ "main" ]
paths:
- '**/*.swift'
jobs:
test:
name: Test
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Dependencies
run: |
brew install ffmpeg peripheryapp/periphery/periphery --quiet
- name: Select Xcode
uses: mxcl/xcodebuild@v3
with:
swift: '6'
action: none
- name: Build Tests
run: USE_FFMPEG=1 xcrun swift build --build-tests -Xswiftc -DGITHUB_ACTIONS -Xswiftc -DFFMPEG
- name: Test FFmpeg Decoder
timeout-minutes: 5
run: xcrun swift test --skip-build --filter ffmpegDecoder
- name: Test Internal Decoder
timeout-minutes: 5
run: xcrun swift test --skip-build --filter internalDecoder
- name: Periphery
run: periphery scan --skip-build --format github-actions --relative-results --strict