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 1/4] 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 From c8b4ff41f80ec8b3ac16633042f4a2fad4d63bcc Mon Sep 17 00:00:00 2001 From: Simon Leeb <52261246+sliemeobn@users.noreply.github.com> Date: Fri, 5 Jul 2024 10:23:21 +0200 Subject: [PATCH 2/4] Update .github/workflows/ci.yaml Co-authored-by: Mahdi Bahrami --- .github/workflows/ci.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a78d3d3..a89f515 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -9,4 +9,6 @@ on: jobs: unit-tests: uses: vapor/ci/.github/workflows/run-unit-tests.yml@main + with: + with_tsan: false secrets: inherit From 07516e0ca5b0c806870685b32dc48e9f959a3bfa Mon Sep 17 00:00:00 2001 From: Mahdi Bahrami Date: Fri, 5 Jul 2024 12:02:29 +0330 Subject: [PATCH 3/4] Try no CodeCov --- .github/workflows/ci.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a89f515..7a73a07 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -11,4 +11,5 @@ jobs: uses: vapor/ci/.github/workflows/run-unit-tests.yml@main with: with_tsan: false + with_coverage: false secrets: inherit From 60e7fc3c5df3835c2873b451ac92d5f53b93cd69 Mon Sep 17 00:00:00 2001 From: Mahdi Bahrami Date: Fri, 5 Jul 2024 13:13:20 +0330 Subject: [PATCH 4/4] readd CodeCov --- .github/workflows/ci.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7a73a07..a89f515 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -11,5 +11,4 @@ jobs: uses: vapor/ci/.github/workflows/run-unit-tests.yml@main with: with_tsan: false - with_coverage: false secrets: inherit