From 224707cdbaa0a8486d5d3a4c3094f5a82e8b401d Mon Sep 17 00:00:00 2001 From: Mattt Date: Tue, 11 Feb 2025 15:26:39 -0800 Subject: [PATCH] Add CI workflow (#1) * Add CI workflow * Setup Swift 6 * Set name for job --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..889a1df --- /dev/null +++ b/.github/workflows/ci.yml @@ -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