passepartout-apple/.github/workflows/test.yml
Davide 6f516d030e
Hijack environment to run tests in PRs (#1124)
Avoid the complications of accessing the PassepartoutKit private
repository by running tests against the public binary distribution.

Also a way to make sure that the framework is up to date.
2025-01-29 15:45:19 +01:00

37 lines
854 B
YAML

name: SwiftPM Tests
on:
pull_request:
types: [ opened, synchronize ]
paths-ignore:
- "README.md"
- ".env.*"
- "**/*.md"
- "**/*.sh"
- "fastlane/**"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
run_swift_tests:
name: Run SwiftPM tests
runs-on: macos-15
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
with:
submodules: false
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 16.1
- name: "Run tests"
run: |
sed -i '' "s/environment = .production/environment = .onlineDevelopment/" "Packages/PassepartoutKit-Framework/Package.swift"
cd Packages/App
swift test