Skip to content

run on swift 5.9 as well #12

run on swift 5.9 as well

run on swift 5.9 as well #12

Workflow file for this run

# This workflow will build a Swift project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift
name: Swift
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
lint:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: SwiftFormat
run: swiftformat --lint --lenient . --reporter github-actions-log
build:
name: Swift ${{ matrix.swift }}
strategy:
matrix:
swift: ["5.9", "5.10"]
runs-on: macos-latest
steps:
- uses: swift-actions/setup-swift@v2
with:
swift-version: ${{ matrix.swift }}
- uses: actions/checkout@v4
- name: Build
run: swift build
- name: Run tests
run: swift test -c release 2>&1 | xcpretty