Skip to content

Bump golangci/golangci-lint-action from 5.0.0 to 5.3.0 #182

Bump golangci/golangci-lint-action from 5.0.0 to 5.3.0

Bump golangci/golangci-lint-action from 5.0.0 to 5.3.0 #182

Workflow file for this run

name: Lint
on:
push:
branches:
- "*"
pull_request:
jobs:
golangci:
name: Lint
runs-on: ubuntu-latest
env:
GO111MODULE: "on"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- uses: actions/cache@v4
with:
# In order:
# * Module download cache
# * Build cache (Linux)
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Generate Sources
run: make generate
- name: Lint with Revive
uses: docker://morphy/revive-action:v2
with:
# Path to your Revive config within the repo (optional)
config: revive.toml
# Exclude patterns, separated by semicolons (optional)
exclude: "cmd/arcdps-log-uploader/utils/versioninfo.go"
# Path pattern (default: ./...)
#path: "./foo/..."
- name: Lint with golangci-lint
uses: golangci/golangci-lint-action@v5.3.0
env:
GOOS: windows
GOARCH: amd64
with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: latest
#skip-go-installation: true
skip-cache: true
# Optional: working directory, useful for monorepos
# working-directory: somedir
# Optional: golangci-lint command line arguments.
# args: --issues-exit-code=0
# Optional: show only new issues if it's a pull request. The default value is `false`.
# only-new-issues: true
# Optional: if set to true then the action will use pre-installed Go.
# skip-go-installation: true
# Optional: if set to true then the action don't cache or restore ~/go/pkg.
# skip-pkg-cache: true
# Optional: if set to true then the action don't cache or restore ~/.cache/go-build.
# skip-build-cache: true