From 17d2a82e55280974af912319a8960d523b134faa Mon Sep 17 00:00:00 2001 From: Mattt Zmuda Date: Mon, 5 May 2025 12:42:50 -0700 Subject: [PATCH] Add CI workflow --- .github/workflows/ci.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 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..d39633f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,37 @@ +name: CI + +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] + +permissions: + contents: read + pull-requests: write + +jobs: + test: + timeout-minutes: 5 + strategy: + matrix: + swift-version: + - 6.0.3 + - 6.1.0 + + runs-on: macos-latest + name: Test (Swift ${{ matrix.swift-version }}) + + steps: + - uses: actions/checkout@v4 + + - name: Setup Swift on macOS + 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