Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
Signed-off-by: LiZhenCheng9527 <[email protected]>
  • Loading branch information
LiZhenCheng9527 committed Jan 16, 2024
1 parent 1df7faf commit 74b265d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,15 @@ jobs:
uses: actions/setup-go@v4
with:
go-version: 1.20.x
- name: Checkout code
uses: actions/checkout@v3
- name: generate license mirror
run: make mirror-licenses
run: |
make mirror-licenses
- name: lint-licenses
# if restricted > 0, CI will report an error.
run: make lint-licenses | grep -q 'restricted, [1-9][0-9]*' && exit 1 || true
run: |
make lint-licenses | grep -q 'restricted, [1-9][0-9]*' && exit 1 || true
test:
name: Unit test
runs-on: ubuntu-22.04
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ mod-download-go:

.PHONY: mirror-licenses
mirror-licenses: mod-download-go; \
@go install istio.io/tools/cmd/license-lint@latest; \
@rm -fr licenses; \
@license-lint --mirror
go install istio.io/tools/cmd/license-lint@latest; \
rm -fr licenses; \
license-lint --mirror

.PHONY: lint-licenses
lint-licenses:
Expand Down

0 comments on commit 74b265d

Please sign in to comment.