From 7589023bd3052f5e8251fb1e30b4569045a48c59 Mon Sep 17 00:00:00 2001 From: Jacob Hummer Date: Sun, 16 Jul 2023 00:20:08 -0500 Subject: [PATCH 1/2] use dry-run and real tests --- .github/workflows/test-action.yml | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml index 2b2c686..2f9a6a6 100644 --- a/.github/workflows/test-action.yml +++ b/.github/workflows/test-action.yml @@ -17,11 +17,11 @@ on: - README.md - .github/** - "!.github/workflows/test-action.yml" +concurrency: + group: ${{ github.workflow }} + cancel-in-progress: true jobs: - test-action-clone: - concurrency: ${{ github.workflow }} - permissions: - contents: write + test-action-clone-dry-run: strategy: fail-fast: false matrix: @@ -30,10 +30,10 @@ jobs: steps: - uses: actions/checkout@v3 - uses: ./ - test-action-init: - concurrency: ${{ github.workflow }} - permissions: - contents: write + with: + strategy: clone + dry-run: true + test-action-init-dry-run: strategy: fail-fast: false matrix: @@ -44,3 +44,12 @@ jobs: - uses: ./ with: strategy: init + dry-run: true + test-action-real: + concurrency: ${{ github.workflow }} + permissions: + contents: write + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: ./ From 4889f684d47a058f347b54134812c468a4db5e38 Mon Sep 17 00:00:00 2001 From: Jacob Hummer Date: Sun, 16 Jul 2023 00:23:43 -0500 Subject: [PATCH 2/2] avoid deadlick --- .github/workflows/test-action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml index 2f9a6a6..8c19b98 100644 --- a/.github/workflows/test-action.yml +++ b/.github/workflows/test-action.yml @@ -46,7 +46,7 @@ jobs: strategy: init dry-run: true test-action-real: - concurrency: ${{ github.workflow }} + concurrency: ${{ github.workflow }}-real permissions: contents: write runs-on: ubuntu-latest