Skip to content

Cleanup package.json #25

Cleanup package.json

Cleanup package.json #25

Workflow file for this run

name: Checks
"on":
push:
branches:
- master
pull_request:
branches:
- "*"
workflow_dispatch: {}
permissions:
checks: write
contents: read
jobs:
checks:
name: License Headers
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
- name: Install addlicense
run: go install github.com/google/addlicense@latest
- name: check license headers
run: >
if [[ $(addlicense --check -- src/ | wc -c) -ne 0 ]]; then
addlicense --check -- src/
exit 1;
else
echo "license check succeeded."
fi