Skip to content

chore: bump golangci/golangci-lint-action from 3.7.0 to 3.7.1 #63

chore: bump golangci/golangci-lint-action from 3.7.0 to 3.7.1

chore: bump golangci/golangci-lint-action from 3.7.0 to 3.7.1 #63

Workflow file for this run

name: CI
on:
push:
jobs:
golangci-lint:
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v4
-
name: Get go.mod details
uses: Eun/go-mod-details@v1.0.6
id: go-mod-details
-
name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ steps.go-mod-details.outputs.go_version }}
-
name: lint
continue-on-error: false
uses: golangci/golangci-lint-action@v3.7.1
with:
version: v1.38.0
# Optional: show only new issues if it's a pull request. The default value is `false`.
# only-new-issues: true
vulns:
name: Vulnerability scanner
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v4
-
uses: actions/setup-go@v5
# We cannot use nancy-github-action because it is outdated, so it's better to use the latest
# docker image for the validation
-
name: nancy
run: go list -json -m all | docker run -i sonatypecommunity/nancy:latest
test:
strategy:
matrix:
go-version: [1.14.x, 1.15.x]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
-
name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
-
name: Checkout code
uses: actions/checkout@v4
-
name: Test
run: go test -v -count=1 -coverprofile="coverage-${{ matrix.platform }}-${{ matrix.go-version }}.txt" -covermode=atomic ./...
-
name: Send coverage
uses: shogo82148/actions-goveralls@v1.8.0
with:
path-to-profile: coverage-${{ matrix.platform }}-${{ matrix.go-version }}.txt
flag-name: ${{ matrix.platform }}-${{ matrix.go-version }}
parallel: true
# notifies that all test jobs are finished.
finish:
needs: test
runs-on: ubuntu-latest
steps:
- uses: shogo82148/actions-goveralls@v1.8.0
with:
parallel-finished: true