Make builds use only one Package.swift #12
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.0' | |
action: none | |
- name: Build Tests | |
run: USE_FFMPEG=1 xcrun swift test -Xswiftc -DGITHUB_ACTIONS -Xswiftc -DFFMPEG list | |
- 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 |