diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..d6cc078 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,22 @@ +name: CI workflow + +on: + pull_request: + branches: [ main ] + +jobs: + build_and_test_macOS: + name: Build and Test project on macOS + runs-on: [ self-hosted, macOS ] + + steps: + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.9.1 + with: + access_token: ${{ github.token }} + - name: Checkout + uses: actions/checkout@v2 + - name: Build + run: swift build + - name: Test + run: swift test