Add CI workflow (#1)

* Add CI workflow

* Setup Swift 6

* Set name for job
This commit is contained in:
Mattt 2025-02-11 15:26:39 -08:00 • committed by GitHub
commit 224707cdba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

28
.github/workflows/ci.yml vendored Normal file
View file

@ -0,0 +1,28 @@
name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
test:
runs-on: macos-latest
strategy:
matrix:
swift-version:
- ^6
name: Build and Test (Swift ${{ matrix.swift-version }})
steps:
- uses: actions/checkout@v4
- uses: swift-actions/setup-swift@v2
with:
swift-version: ${{ matrix.swift-version }}
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v