mirror of
https://github.com/spf13/cobra
synced 2025-05-05 12:57: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:
|
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:
|
golangci-lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
@ -28,6 +47,7 @@ jobs:
|
||||||
version: latest
|
version: latest
|
||||||
args: --verbose
|
args: --verbose
|
||||||
|
|
||||||
|
|
||||||
test-unix:
|
test-unix:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
@ -63,6 +83,7 @@ jobs:
|
||||||
|
|
||||||
- run: RICHGO_FORCE_COLOR=1 PATH=$HOME/go/bin/:$PATH make test
|
- run: RICHGO_FORCE_COLOR=1 PATH=$HOME/go/bin/:$PATH make test
|
||||||
|
|
||||||
|
|
||||||
test-win:
|
test-win:
|
||||||
name: MINGW64
|
name: MINGW64
|
||||||
defaults:
|
defaults:
|
||||||
|
|
Loading…
Add table
Reference in a new issue