mirror of
https://github.com/spf13/cobra
synced 2025-05-05 04:47:22 +00:00
ci: add job 'lic-headers'
This commit is contained in:
parent
68ce1131c6
commit
3066042dee
1 changed files with 21 additions and 0 deletions
21
.github/workflows/test.yml
vendored
21
.github/workflows/test.yml
vendored
|
@ -9,6 +9,25 @@ env:
|
|||
|
||||
jobs:
|
||||
|
||||
|
||||
lic-headers:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- run: >-
|
||||
docker run
|
||||
-v $(pwd):/wrk -w /wrk
|
||||
ghcr.io/google/addlicense
|
||||
-c 'The Cobra Authors'
|
||||
-y '2013-2022'
|
||||
-l apache
|
||||
-ignore '.github/**'
|
||||
-check
|
||||
.
|
||||
|
||||
|
||||
golangci-lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
@ -28,6 +47,7 @@ jobs:
|
|||
version: latest
|
||||
args: --verbose
|
||||
|
||||
|
||||
test-unix:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
@ -63,6 +83,7 @@ jobs:
|
|||
|
||||
- run: RICHGO_FORCE_COLOR=1 PATH=$HOME/go/bin/:$PATH make test
|
||||
|
||||
|
||||
test-win:
|
||||
name: MINGW64
|
||||
defaults:
|
||||
|
|
Loading…
Add table
Reference in a new issue