mirror of
https://github.com/passepartoutvpn/passepartout-apple.git
synced 2024-12-24 18:32:36 +00:00
a0da930d98
Carefully drop the StoreKit and Kvitto dependencies for ProductManager to be testable. Rebuild test target completely to start writing meaningful tests in general.
40 lines
840 B
YAML
40 lines
840 B
YAML
name: Unit Tests
|
|
|
|
on:
|
|
pull_request:
|
|
types: [ opened, synchronize ]
|
|
paths-ignore:
|
|
- '.beta-*'
|
|
- '.env.*'
|
|
- '**/*.md'
|
|
- '**/*.sh'
|
|
- '**/*.yml'
|
|
- 'Passepartout/App/fastlane/**'
|
|
|
|
concurrency:
|
|
group: ${{ github.ref }}
|
|
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
|
|
|
|
jobs:
|
|
run_tests:
|
|
name: Run tests
|
|
runs-on: macos-12
|
|
timeout-minutes: 15
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
submodules: true
|
|
- uses: maxim-lobanov/setup-xcode@v1
|
|
with:
|
|
xcode-version: latest-stable
|
|
- uses: ruby/setup-ruby@v1
|
|
with:
|
|
bundler-cache: true
|
|
- uses: actions/setup-go@v4
|
|
with:
|
|
go-version: "^1.17"
|
|
- name: Run tests
|
|
run: |
|
|
cd PassepartoutLibrary
|
|
swift test
|