shirou_gopsutil/.github/workflows/lint.yml

29 lines
627 B
YAML
Raw Normal View History

2021-11-05 19:04:51 +08:00
name: Golangci-lint
on:
push:
pull_request:
permissions:
contents: read
2021-11-05 19:04:51 +08:00
jobs:
golangci:
permissions:
contents: read # for actions/checkout to fetch code
pull-requests: read # for golangci/golangci-lint-action to fetch pull requests
2021-11-05 19:04:51 +08:00
name: lint
runs-on: ubuntu-latest
steps:
- name: Setup go
uses: actions/setup-go@v3
2021-11-05 19:04:51 +08:00
with:
go-version: 1.17
- name: Checkout repository
uses: actions/checkout@v3
2021-11-05 19:04:51 +08:00
- name: Setup golangci-lint
uses: golangci/golangci-lint-action@v3
2021-11-05 19:04:51 +08:00
with:
2021-11-06 00:04:18 +08:00
args: --verbose
2021-11-05 19:04:51 +08:00
version: latest