mirror of
https://github.com/jkl1337/SwiftPFFFT.git
synced 2026-01-02 03:34:31 -06:00
31 lines
642 B
YAML
31 lines
642 B
YAML
name: Swift CI
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
test:
|
|
name: Run Unit Tests on macOS and Linux
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [macos-latest, ubuntu-latest]
|
|
swift: ["5.9", "5.10", "6.0"]
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Set up Swift ${{ matrix.swift }}
|
|
uses: NeedleInAJayStack/setup-swift@feat/swift-6
|
|
with:
|
|
swift-version: ${{ matrix.swift }}
|
|
|
|
- name: Build and Run Tests
|
|
run: |
|
|
swift build --enable-test-discovery
|
|
swift test
|