diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 5ad7f3a..b7396dd 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -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 @@ -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: