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