From 9e698d75bb7c82e1a843f7c9d5260c258c3a972f Mon Sep 17 00:00:00 2001 From: Joel-David Date: Sat, 20 Jul 2024 12:14:44 +0800 Subject: [PATCH 1/2] Added ci --- .github/workflows/ci.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 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..aec94ad --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,23 @@ +name: CI + +on: + pull_request: + branches: + - main + push: + branches: + - main + +jobs: + unit-test: + name: Unit tests + runs-on: ubuntu-latest + steps: + - uses: swift-actions/setup-swift@3aed395c5397f62deb91d8fe7af1418a9ae4d16f # v2.1.0 + with: + swift-version: "5.4.3" + - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 + - name: Build + run: swift build + - name: Run tests + run: swift test \ No newline at end of file From 49c06edc625e67d4dd6a084bf0189ff02a5d0119 Mon Sep 17 00:00:00 2001 From: Joel-David Date: Sat, 20 Jul 2024 12:17:00 +0800 Subject: [PATCH 2/2] bump swift version --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aec94ad..17ad76d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ jobs: steps: - uses: swift-actions/setup-swift@3aed395c5397f62deb91d8fe7af1418a9ae4d16f # v2.1.0 with: - swift-version: "5.4.3" + swift-version: "5.10.1" - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 - name: Build run: swift build