chore: separate linter and unit test jobs to allow for a go version compatible with the linter
https://github.com/golangci/golangci-lint-action/issues/434#issuecomment-1088100765
This commit is contained in:
@@ -13,14 +13,20 @@ jobs:
|
|||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: ${{ steps.go-version.outputs.go-version }}
|
go-version: ${{ steps.go-version.outputs.go-version }}
|
||||||
|
- name: Unit tests
|
||||||
|
run: |
|
||||||
|
make test race
|
||||||
|
lint:
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3.1.0
|
||||||
|
- uses: actions/setup-go@v2
|
||||||
|
with:
|
||||||
|
go-version: 1.17
|
||||||
- name: Lint
|
- name: Lint
|
||||||
uses: golangci/golangci-lint-action@v3.3.1
|
uses: golangci/golangci-lint-action@v3.3.1
|
||||||
with:
|
with:
|
||||||
version: v1.31
|
version: v1.31
|
||||||
skip-go-installation: true
|
|
||||||
- name: Unit tests
|
|
||||||
run: |
|
|
||||||
make test race
|
|
||||||
spec-test:
|
spec-test:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
Reference in New Issue
Block a user