Parallelize linter and test/build
This commit is contained in:
parent
e5101f7587
commit
45e07b0d72
|
@ -6,7 +6,18 @@ on:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
lint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Go-linter
|
||||||
|
# You may pin to the exact commit or the version.
|
||||||
|
# uses: Jerome1337/golint-action@c5d17206a0a436bbf1edb91e314ed084f7c57589
|
||||||
|
uses: https://github.com/Jerome1337/golint-action@v1.0.2
|
||||||
|
#with:
|
||||||
|
# Path used by golint command
|
||||||
|
# golint-path: # optional, default is ./...
|
||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
@ -30,11 +41,3 @@ jobs:
|
||||||
run: go test -v -cover ./...
|
run: go test -v -cover ./...
|
||||||
- name: Build
|
- name: Build
|
||||||
run: goreleaser build --snapshot --rm-dist
|
run: goreleaser build --snapshot --rm-dist
|
||||||
- name: Go-linter
|
|
||||||
# You may pin to the exact commit or the version.
|
|
||||||
# uses: Jerome1337/golint-action@c5d17206a0a436bbf1edb91e314ed084f7c57589
|
|
||||||
uses: https://github.com/Jerome1337/golint-action@v1.0.2
|
|
||||||
#with:
|
|
||||||
# Path used by golint command
|
|
||||||
# golint-path: # optional, default is ./...
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue