Skip to content

Bump golang.org/x/sys from 0.12.0 to 0.13.0 (#42) #143

Bump golang.org/x/sys from 0.12.0 to 0.13.0 (#42)

Bump golang.org/x/sys from 0.12.0 to 0.13.0 (#42) #143

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@v4
with:
go-version: '1.20' # The Go version to download (if necessary) and use.
- uses: actions/cache@v3
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@v3.7.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