Skip to content

Commit

Permalink
ci: merge workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
depado committed Dec 24, 2024
1 parent 0af68f7 commit 5842543
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions .github/workflows/golang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,6 @@ on:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
cache: false
- name: test
run: go test -race

coverage:
name: Test and cover
runs-on: ubuntu-latest
permissions:
Expand All @@ -37,3 +26,22 @@ jobs:
with:
coverage-threshold: 80
cover-pkg: ./...

golangci:
name: Lint
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
checks: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: latest
args: --timeout=3m

0 comments on commit 5842543

Please sign in to comment.