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 032f5fc
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,19 @@ on:
branches:
- main
jobs:
check:
name: Check with SPM (Xcode ${{ matrix.tooling.xcode-version }}, Swift ${{ matrix.tooling.swift-version }})
lint:
runs-on: macos-latest

steps:
- 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 +35,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 032f5fc

Please sign in to comment.