diff --git a/.github/workflows/run-test-and-deploy.yml b/.github/workflows/run-test-and-deploy.yml index 57275ea..f4ab4ed 100644 --- a/.github/workflows/run-test-and-deploy.yml +++ b/.github/workflows/run-test-and-deploy.yml @@ -2,8 +2,6 @@ name: Test and Deploy on: push: - branches-ignore: - - '**' tags: - '*' diff --git a/.github/workflows/run-test.yml b/.github/workflows/run-test.yml index c7fcd1f..18a5e23 100644 --- a/.github/workflows/run-test.yml +++ b/.github/workflows/run-test.yml @@ -1,14 +1,17 @@ name: Test on: - push: - tags-ignore: - - '**' - branches: - - '*' pull_request: + push: branches: - - '*' + - main + +# Cancels all previous workflow runs for pull requests that have not completed. +concurrency: + # The concurrency group contains the workflow name and the branch name for pull requests + # or the commit hash for any other events. + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} + cancel-in-progress: true jobs: test: