From 1f8a8fb4569d2c6dd579c304d43ab19b90c78cdf Mon Sep 17 00:00:00 2001 From: Joel-David Date: Sat, 20 Jul 2024 12:14:44 +0800 Subject: [PATCH] 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