From 24612f7e38a7a26fde02c610695b577eed204b7d Mon Sep 17 00:00:00 2001 From: siemensikkema Date: Wed, 17 Nov 2021 14:35:28 +0100 Subject: [PATCH] Add CI workflow --- .github/workflows/ci.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 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..80495c6 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +name: CI + +on: + push: + branches: + - main + pull_request: + +jobs: + linux: + runs-on: ubuntu-latest + strategy: + matrix: + container: + - 'swift:5.5-focal' + container: ${{ matrix.container }} + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Run tests + run: swift test --sanitize=thread + macos: + runs-on: macos-11 + strategy: + matrix: + xcode: + - '13.1' + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Select Xcode ${{ matrix.xcode }} + run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app + - name: Run tests + run: swift test --sanitize=thread \ No newline at end of file