Skip to content

Commit 0f2b428

Browse files
strantalisdmihalcik-virtrujrschumacher
authored
feat(ci): adds go-licenses check job (#3)
* feat(ci): adds go-licenses check job * only set disallowed types to forbidden for now --------- Co-authored-by: Dave Mihalcik <[email protected]> Co-authored-by: Ryan Schumacher <[email protected]>
1 parent 02e92a6 commit 0f2b428

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/checks.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,3 +142,19 @@ jobs:
142142
steps:
143143
- if: contains(needs.*.result, 'failure')
144144
run: exit 1
145+
146+
license:
147+
if: contains(fromJSON('["push", "pull_request"]'), github.event_name)
148+
name: license check
149+
runs-on: ubuntu-22.04
150+
steps:
151+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
152+
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
153+
with:
154+
go-version: '1.21'
155+
cache: false
156+
- name: install go-licenses
157+
run: go install github.com/google/go-licenses@5348b744d0983d85713295ea08a20cca1654a45e
158+
- name: check licenses
159+
run: go-licenses check --disallowed_types=forbidden --include_tests ./...
160+

0 commit comments

Comments
 (0)