From cf47150861946a1e098a8da17b699a248346ea64 Mon Sep 17 00:00:00 2001 From: umarcor Date: Thu, 15 Sep 2022 00:06:49 +0100 Subject: [PATCH] ci: add job 'lic-headers' --- .github/workflows/test.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4e041c7fbb..797ae60e8c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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: