mirror of
https://github.com/jkl1337/SwiftPFFFT.git
synced 2026-01-02 03:34:31 -06:00
Add CI
This commit is contained in:
31
.github/workflows/swift.yml
vendored
Normal file
31
.github/workflows/swift.yml
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
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: fwal/setup-swift@v1
|
||||
with:
|
||||
swift-version: ${{ matrix.swift }}
|
||||
os: ${{ matrix.os }}
|
||||
|
||||
- name: Build and Run Tests
|
||||
run: |
|
||||
swift build --enable-test-discovery
|
||||
swift test
|
||||
Reference in New Issue
Block a user