passepartout-apple/.github/workflows/test.yml

39 lines
881 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_tests:
name: Run tests
runs-on: macos-14
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 15.4
- name: Access private repositories
env:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
run: |
git config --global url.https://$ACCESS_TOKEN@github.com/.insteadOf git@github.com:
- name: Run tests
run: |
cd Passepartout/Library
swift test