mirror of
https://github.com/go-shiori/shiori.git
synced 2024-09-20 15:06:14 +08:00
8e9324ae8b
* deps: update go1.20 and dependencies * fix: goreleaser archives * ci: removed unused notify irc action * ci: updated workflow dependency versions * fix: typo
35 lines
1.1 KiB
YAML
35 lines
1.1 KiB
YAML
name: "golangci-lint"
|
|
|
|
on: workflow_call
|
|
|
|
permissions:
|
|
contents: read
|
|
pull-requests: read
|
|
jobs:
|
|
golangci:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f # v3.4.0
|
|
- name: golangci-lint
|
|
uses: golangci/golangci-lint-action@639cd343e1d3b897ff35927a75193d57cfcba299 # 3.6.0
|
|
with:
|
|
version: latest
|
|
|
|
# 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
|