mirror of
https://github.com/go-shiori/shiori.git
synced 2024-09-20 15:06:14 +08:00
d05d1ad2c0
* CI/CD setup * Setup for go-shiori * Fix docker image * Dockerfile adjustments
35 lines
1,002 B
YAML
35 lines
1,002 B
YAML
name: 'golangci-lint'
|
|
|
|
on: workflow_call
|
|
|
|
permissions:
|
|
contents: read
|
|
pull-requests: read
|
|
jobs:
|
|
golangci:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: golangci-lint
|
|
uses: golangci/golangci-lint-action@v2
|
|
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
|