Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(tests): use 'concurrency' instead of 'styfle/cancel-workflow-action' #2591

Merged
merged 2 commits into from Dec 6, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 4 additions & 8 deletions .github/workflows/tests.yml
@@ -1,3 +1,7 @@
concurrency:
group: ${{ github.repository }}-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
push:
branches:
Expand All @@ -15,9 +19,6 @@ permissions:

jobs:
test:
permissions:
actions: write # for styfle/cancel-workflow-action to cancel/stop running workflows
contents: read # for actions/checkout to fetch code
gmlewis marked this conversation as resolved.
Show resolved Hide resolved
strategy:
matrix:
go-version: [1.x, 1.18.x]
Expand All @@ -35,11 +36,6 @@ jobs:
runs-on: ${{ matrix.platform }}

steps:
- name: Cancel previous
uses: styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5 #0.11.0
with:
access_token: ${{ github.token }}

- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
Expand Down