From e214070e6cf6c32e879e28ac6124621ce1c8eaf1 Mon Sep 17 00:00:00 2001 From: Liam Nichols Date: Sun, 25 Jun 2023 21:52:45 +0200 Subject: [PATCH] Add Unit Testing workflow (#2) * Add Unit Testing workflow * Use Xcode 14.0.1 --- .github/workflows/tests.yml | 47 +++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..fa79ff6 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,47 @@ +name: "Tests" + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + macos: + name: macOS (Xcode ${{ matrix.xcode }}) + strategy: + fail-fast: false + matrix: + xcode: ["15.0", "14.3.1", "14.0.1", "13.4.1"] + include: + - xcode: "15.0" + macos: macOS-13 + - xcode: "14.3.1" + macos: macOS-13 + - xcode: "14.0.1" + macos: macOS-12 + - xcode: "13.4.1" + macos: macOS-12 + runs-on: ${{ matrix.macos }} + env: + DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer + steps: + - name: Checkout Repo + uses: actions/checkout@v3 + - name: Run Tests + run: swift test + linux: + name: Linux (Swift ${{ matrix.swift }}) + strategy: + fail-fast: false + matrix: + swift: ["5.8", "5.7", "5.6"] + runs-on: ubuntu-latest + container: swift:${{ matrix.swift }} + steps: + - name: Checkout Repo + uses: actions/checkout@v3 + - name: Run Tests + run: swift test