From da624b837bac9481e1e8417655408d447e17711a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Coye=20de=20Brune=CC=81lis?= Date: Tue, 28 Jan 2025 11:22:19 +0100 Subject: [PATCH] feat: CI workflow using minimalist swift commands --- .github/workflows/ci.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 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..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