From 7fbb770fa647a67d9f8c7fa107bfb7410acb8fd3 Mon Sep 17 00:00:00 2001 From: Simon Leeb <52261246+sliemeobn@users.noreply.github.com> Date: Fri, 5 Jul 2024 10:14:39 +0200 Subject: [PATCH] try out vapor run-unit-tests --- .github/workflows/ci.yaml | 33 +++++++++------------------------ 1 file changed, 9 insertions(+), 24 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index de1d49b..a78d3d3 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,27 +1,12 @@ -name: CI - +name: test +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true on: - push: - branches: - - main - paths: - - "**.swift" - - "**.yml" - pull_request: - workflow_dispatch: + pull_request: { types: [opened, reopened, synchronize, ready_for_review] } + push: { branches: [main] } 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 + unit-tests: + uses: vapor/ci/.github/workflows/run-unit-tests.yml@main + secrets: inherit