diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index cc21971b0..5dd74a3bd 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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 diff --git a/Makefile b/Makefile index 2d883457d..d47a42a6a 100644 --- a/Makefile +++ b/Makefile @@ -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: