ci: use concurrency

This commit is contained in:
iCrawl
2022-08-16 11:00:17 +02:00
parent e82b2e49f5
commit 501945215b
5 changed files with 24 additions and 11 deletions

View File

@@ -1,5 +1,10 @@
name: Tests
on: [push, pull_request]
on:
push:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
tests:
name: Tests
@@ -31,5 +36,5 @@ jobs:
run: yarn test
- name: Upload Coverage
uses: ./packages/actions/src/uploadCoverage
if: github.repository_owner == 'discordjs'
uses: ./packages/actions/src/uploadCoverage