From 7cf9fb1fe886e0037541d10fd324cb17135f14f5 Mon Sep 17 00:00:00 2001 From: Simon Leeb <52261246+sliemeobn@users.noreply.github.com> Date: Fri, 5 Jul 2024 09:31:17 +0200 Subject: [PATCH] add testing in CI --- .github/workflows/ci.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..de1d49b --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,27 @@ +name: CI + +on: + push: + branches: + - main + paths: + - "**.swift" + - "**.yml" + pull_request: + workflow_dispatch: + +jobs: + linux: + runs-on: ubuntu-latest + timeout-minutes: 15 + strategy: + matrix: + image: ["swift:5.10", "swiftlang/swift:nightly-6.0-jammy"] + + container: + image: ${{ matrix.image }} + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Test + run: swift test