Conflict detection #26
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
main: | |
name: Build & Test (Swift v${{ matrix.swift }} on ${{ matrix.os }}) | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
swift: ["5"] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: "Use Swift v${{ matrix.swift }}" | |
uses: swift-actions/setup-swift@v2 | |
with: | |
swift-version: ${{ matrix.swift }} | |
- name: Display Swift version | |
run: swift --version | |
- name: Build | |
run: swift build | |
# Testing only supported with Swift >= 6.0 | |
beta: | |
name: Build & Test (beta) | |
runs-on: macos-14 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Use Swift v6.0 | |
uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: "16.0-beta" | |
- name: Lint | |
run: swift package plugin swiftlint --reporter github-actions-logging --strict | |
- name: Build | |
run: swift build | |
- name: Test | |
run: swift test --enable-swift-testing |