Skip to content

Commit

Permalink
Add and enforce license check (#327)
Browse files Browse the repository at this point in the history
  • Loading branch information
msuozzo authored Feb 8, 2025
1 parent 1f340e5 commit f2c975a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/license.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: License

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Go ${{matrix.go-version}}
uses: actions/setup-go@v5
with:
go-version: ${{matrix.go-version}}

- name: Check
# NOTE: Keep in sync with .hooks/addlicense
run: go run github.com/google/[email protected] -check -s=only -ignore='bin/**' -ignore='**/.terraform.lock.hcl' -ignore='definitions/**' **
1 change: 1 addition & 0 deletions .hooks/addlicense
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#!/bin/sh
# NOTE: Keep in sync with .github/workflow/license.yml
go run github.com/google/[email protected] -s=only -ignore='bin/**' -ignore='**/.terraform.lock.hcl' -ignore='definitions/**' **

0 comments on commit f2c975a

Please sign in to comment.