From 45e07b0d72c6f0528711ab513907d1e029914f1e Mon Sep 17 00:00:00 2001 From: "Marcel M. Otte" Date: Fri, 12 May 2023 16:09:33 +0200 Subject: [PATCH] Parallelize linter and test/build --- .github/workflows/go.yml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 7065fd6..75102aa 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -6,7 +6,18 @@ on: branches: [ main ] 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: runs-on: ubuntu-latest steps: @@ -30,11 +41,3 @@ jobs: run: go test -v -cover ./... - name: Build 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 ./... -