dateparse/.github/workflows/lint.yaml

30 lines
750 B
YAML
Raw Normal View History

2023-02-15 12:40:47 +08:00
name: golangci-lint
on:
push:
tags:
- v*
branches:
- master
- main
pull_request:
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache-Go
uses: actions/cache@v1
with:
path: |
~/go/pkg/mod # Module download cache
~/.cache/go-build # Build cache (Linux)
~/Library/Caches/go-build # Build cache (Mac)
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- name: golangci-lint
2023-02-15 12:53:01 +08:00
uses: golangci/golangci-lint-action@v3
2023-02-15 12:40:47 +08:00
with:
version: latest