Skip to content

Commit

Permalink
Add SPM tests job
Browse files Browse the repository at this point in the history
  • Loading branch information
Widcket committed Aug 16, 2023
1 parent f18426c commit 6d31c72
Showing 1 changed file with 29 additions and 4 deletions.
33 changes: 29 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,26 @@ jobs:
uses: andymckay/cancel-action@0.3
if: ${{ failure() }}

swiftlint:
name: Swiftlint
test-package:
name: Test swift package
runs-on: macos-latest

strategy:
matrix:
xcode:
- '14.2'

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Run Swiftlint
run: swiftlint lint --reporter github-actions-logging
- name: Set up environment
uses: ./.github/actions/setup
with:
xcode: ${{ matrix.xcode }}

- name: Run tests
run: swift test

- name: Cancel wokflow on failure
uses: andymckay/cancel-action@0.3
Expand Down Expand Up @@ -85,3 +95,18 @@ jobs:
- name: Cancel wokflow on failure
uses: andymckay/cancel-action@0.3
if: ${{ failure() }}

swiftlint:
name: Swiftlint
runs-on: macos-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Run Swiftlint
run: swiftlint lint --reporter github-actions-logging

- name: Cancel wokflow on failure
uses: andymckay/cancel-action@0.3
if: ${{ failure() }}

0 comments on commit 6d31c72

Please sign in to comment.