mirror of
https://github.com/passepartoutvpn/passepartout-apple.git
synced 2025-02-20 23:02:14 +00:00
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.
37 lines
854 B
YAML
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
|