chore: update action

This commit is contained in:
Kevin Franklin Kim 2022-09-12 08:32:51 +02:00
parent 5976442d61
commit ae48cdee2f

View File

@ -11,8 +11,8 @@ on:
workflow_dispatch: workflow_dispatch:
env: env:
GO_VERSION: 1.19 GOFLAGS: -mod=readonly
GOLANGCI_LINT_VERSION: v1.48 GOPROXY: https://proxy.golang.org
jobs: jobs:
matrix: matrix:
@ -41,25 +41,17 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: actions/setup-go@v3 - uses: actions/setup-go@v3
with: with:
go-version: ${{ env.GO_VERSION }} go-version-file: 'go.mod'
- uses: golangci/golangci-lint-action@v3.2.0 - uses: golangci/golangci-lint-action@v3
with: with:
version: ${{ env.GOLANGCI_LINT_VERSION }}
working-directory: ${{ matrix.gomod }} working-directory: ${{ matrix.gomod }}
test: test:
name: test name: test
needs: matrix
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
gomod: ${{ fromJson(needs.matrix.outputs.gomod) }}
env:
GOFLAGS: -mod=readonly
GOPROXY: https://proxy.golang.org
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: actions/setup-go@v3 - uses: actions/setup-go@v3
with: with:
go-version: ${{ env.GO_VERSION }} go-version-file: 'go.mod'
- run: go test -v ./... - run: go test -v ./...