Skip to content

Commit

Permalink
Run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentTreguier committed Jul 31, 2024
1 parent 5f56791 commit 1100adc
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion .github/workflows/publishing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,42 @@ jobs:
path: Export/Fyreplace.pkg
if-no-files-found: error

test:
name: Test
runs-on: macos-latest
strategy:
matrix:
platform:
- macOS
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true

- name: Cache packages
uses: actions/cache@v4
with:
path: |
~/Library/Caches/org.swift.swiftpm
~/Library/Developer/Xcode/DerivedData/**/SourcePackages/checkouts
~/Library/Developer/Xcode/DerivedData/**/SourcePackages/repositories
key: ${{ runner.os }}-${{ matrix.platform }}-spm-${{ hashFiles('**/Package.resolved') }}
restore-keys: |
${{ runner.os }}-${{ matrix.platform }}-spm-
- name: Run tests
run: |
xcodebuild test \
-scheme Fyreplace \
-only-testing FyreplaceTests
publish:
name: Publish
needs: build
needs:
- build
- test
runs-on: macos-latest
environment: apple-app-store
strategy:
Expand Down

0 comments on commit 1100adc

Please sign in to comment.