Skip to content

Commit

Permalink
Skip GitHub Actions verify and regression steps from manual runs
Browse files Browse the repository at this point in the history
We already skip package tests as we have coverage in our PR tests already
  • Loading branch information
colinrotherham committed Jul 24, 2023
1 parent a7737ef commit c49196d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ on:
type: boolean

concurrency:
group: tests-${{ github.head_ref || github.run_id }}
group: tests-${{ inputs.runner || 'ubuntu-latest' }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
Expand Down Expand Up @@ -190,6 +190,9 @@ jobs:
runs-on: ${{ inputs.runner || 'ubuntu-latest' }}
needs: [install, build]

# Skip when scheduled or run manually
if: ${{ !inputs.runner }}

strategy:
fail-fast: false

Expand Down Expand Up @@ -269,6 +272,9 @@ jobs:
name: Percy
needs: [install, build]

# Skip when scheduled or run manually
if: ${{ !inputs.runner }}

# Run existing "Percy screenshots" workflow
# (after install and build have been cached)
uses: ./.github/workflows/screenshots.yml
Expand Down

0 comments on commit c49196d

Please sign in to comment.