mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-14 06:57:31 +00:00
scripts/check_license_headers.sh: delete, rewrite as a Go test
Updates tailscale/corp#29650 Change-Id: Iad4e4ccd9d68ebb1d1a12f335cc5295d0bd05b60 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:

committed by
Brad Fitzpatrick

parent
86985228bc
commit
259bab9bff
14
.github/workflows/test.yml
vendored
14
.github/workflows/test.yml
vendored
@@ -702,11 +702,23 @@ jobs:
|
||||
|
||||
licenses:
|
||||
runs-on: ubuntu-24.04
|
||||
needs: gomod-cache
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
with:
|
||||
path: src
|
||||
- name: Restore Go module cache
|
||||
uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
|
||||
with:
|
||||
path: gomodcache
|
||||
key: ${{ needs.gomod-cache.outputs.cache-key }}
|
||||
enableCrossOsArchive: true
|
||||
- name: check licenses
|
||||
run: ./scripts/check_license_headers.sh .
|
||||
working-directory: src
|
||||
run: |
|
||||
grep -q TestLicenseHeaders *.go || (echo "Expected a test named TestLicenseHeaders"; exit 1)
|
||||
./tool/go test -v -run=TestLicenseHeaders
|
||||
|
||||
staticcheck:
|
||||
runs-on: ubuntu-24.04
|
||||
|
Reference in New Issue
Block a user