diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 93b7f3c..a32c515 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,6 +8,10 @@ on: permissions: contents: read +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: build-and-test: runs-on: ubuntu-latest @@ -21,4 +25,4 @@ jobs: - name: Vet run: go vet ./... - name: Test - run: go test -short -race -count=1 ./... + run: go test -race -count=1 ./...