Skip to content

Commit

Permalink
split out lint
Browse files Browse the repository at this point in the history
  • Loading branch information
lawrence-forooghian committed Aug 1, 2024
1 parent 83026fa commit fef7059
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,16 @@ on:
branches:
- main
jobs:
check:
name: Check with SPM (Xcode ${{ matrix.tooling.xcode-version }}, Swift ${{ matrix.tooling.swift-version }})
lint:
- uses: actions/checkout@v4

- run: npm ci

- run: script/format/check
- run: script/lint/check

check-spm:
name: SPM (Xcode ${{ matrix.tooling.xcode-version }}, Swift ${{ matrix.tooling.swift-version }})
runs-on: macos-latest
strategy:
fail-fast: false
Expand All @@ -24,17 +32,12 @@ jobs:
with:
xcode-version: ${{ matrix.tooling.xcode-version }}

- run: npm ci

- run: script/format/check
- run: script/lint/check

# https://forums.swift.org/t/warnings-as-errors-for-libraries-frameworks/58393/2
- run: swift build -Xswiftc -warnings-as-errors -Xswiftc -swift-version -Xswiftc ${{ matrix.tooling.swift-version }}
- run: swift test -Xswiftc -warnings-as-errors -Xswiftc -swift-version -Xswiftc ${{ matrix.tooling.swift-version }}

check-on-platforms:
name: Check with xcodebuild (${{matrix.platform}}, Xcode ${{ matrix.tooling.xcode-version }}, Swift ${{ matrix.tooling.swift-version }})
check-xcode:
name: Xcode (${{matrix.platform}}, Xcode ${{ matrix.tooling.xcode-version }}, Swift ${{ matrix.tooling.swift-version }})
runs-on: macos-latest

strategy:
Expand Down

0 comments on commit fef7059

Please sign in to comment.