Add go-licenses check to CI (#50)

Runs github.com/google/go-licenses
This commit is contained in:
Vaibhav Kamra 2022-05-18 14:19:53 -07:00 committed by GitHub
parent ad15968837
commit 1e65e2f120
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,6 +20,15 @@ jobs:
with: with:
go-version: 1.18 go-version: 1.18
- name: Run go mod download
run: go mod download
- name: Get go-licenses
run: go install github.com/google/go-licenses@latest
- name: Run go-licenses
run: go-licenses check github.com/alcionai/corso --ignore github.com/alcionai/corso
- name: Run gofmt - name: Run gofmt
run: if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then exit 1; fi run: if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then exit 1; fi