Skip to content

Commit

Permalink
build: improve CI workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
mfridman committed Mar 11, 2024
1 parent 5efbe40 commit 3395b9c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
- master
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
name: Run unit tests
Expand Down Expand Up @@ -38,3 +42,7 @@ jobs:
go vet ./...
go build ./...
make test-packages
- name: Gorelease dry-run
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && matrix.go-version == '1.22'
run: |
goreleaser build
4 changes: 4 additions & 0 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
- master
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
name: Run e2e tests
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
- master
- main
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
golangci:
name: lint
Expand Down

0 comments on commit 3395b9c

Please sign in to comment.