passepartout-apple/.github/workflows/test.yml
Davide 54f4364c33
Split test jobs (#855)
Move Core Data tests out of the Library package so that we can still use
the more efficient `swift test` for most tests.

Create a PassepartoutTests target only for tests that require
`xcodebuild`, like Core Data tests.

Eventually:

- PRs only run SwiftPM tests
- Releases run ALL tests with `scan` before `gym`
2024-11-12 18:35:44 +01:00

29 lines
587 B
YAML

name: Unit Tests
on:
pull_request:
types: [ opened, synchronize ]
paths-ignore:
- '.env.*'
- '**/*.md'
- '**/*.sh'
- '**/*.yml'
- 'fastlane/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
run_swift_tests:
name: Run SwiftPM tests
runs-on: macos-14
timeout-minutes: 10
steps:
- uses: passepartoutvpn/action-prepare-xcode-build@master
with:
access_token: ${{ secrets.ACCESS_TOKEN }}
- run: |
cd Passepartout/Library
swift test