Skip to content

Make builds use only one Package.swift #12

Make builds use only one Package.swift

Make builds use only one Package.swift #12

Workflow file for this run

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