From 7659802b0c169a04064b2415fd73026af683fb33 Mon Sep 17 00:00:00 2001 From: Noah Kamara <40308075+NoahKamara@users.noreply.github.com> Date: Sun, 10 Mar 2024 16:49:15 +0100 Subject: [PATCH] Create build-and-test.yml --- .github/workflows/build-and-test.yml | 36 ++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/build-and-test.yml diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml new file mode 100644 index 0000000..b51983e --- /dev/null +++ b/.github/workflows/build-and-test.yml @@ -0,0 +1,36 @@ +name: Build & Test + +concurrency: + group: "quality" + cancel-in-progress: true + +on: + push: + branches: + - main + - release + pull_request: + types: [opened, synchronize, reopened] + branches: + - main + - release +jobs: + build: + name: Build & Test + runs-on: macos-latest + steps: + - name: Install Swift + uses: swift-actions/setup-swift@v1.26.0 + with: + swift-version: 5.9 + + - name: Get swift version + run: swift --version + + - uses: actions/checkout@v4 + + - name: Build + run: swift build + + - name: Run tests + run: swift test