Skip to content

Commit

Permalink
Add action concurrency by commit id for build and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hoang-rio committed Jun 18, 2024
1 parent 0389e55 commit 861af5e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

'env':
'GO_VERSION': '1.22.4'
'NODE_VERSION': '16'
'NODE_VERSION': '18.18.0'

'on':
'push':
Expand All @@ -12,6 +12,10 @@
- 'v*'
'pull_request':

'concurrency':
'group': ${{ github.event.head_commit.id }}
'cancel-in-progress': true

'jobs':
'test':
'runs-on': '${{ matrix.os }}'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
- '*'
'pull_request':

'concurrency':
'group': ${{ github.event.head_commit.id }}
'cancel-in-progress': true

'jobs':
'go-lint':
'runs-on': 'ubuntu-latest'
Expand Down

0 comments on commit 861af5e

Please sign in to comment.