From 39fdcc9ea24ce786f0cd38dff5d892aaf53d5648 Mon Sep 17 00:00:00 2001 From: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com> Date: Tue, 5 Apr 2022 15:37:29 +0500 Subject: [PATCH] Refactor Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com> --- .github/workflows/go.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 0a12e6d6f5..217572cce1 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -14,10 +14,12 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v2 + - name: Set up Go uses: actions/setup-go@v2 with: go-version: 1.17 + - name: Run golangci-lint uses: golangci/golangci-lint-action@v3 with: @@ -70,10 +72,12 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v2 + - name: Setup Golang uses: actions/setup-go@v1 with: go-version: 1.17.6 + # k8s codegen generates files into GOPATH location instead of the GitHub git checkout location # This symlink is necessary to ensure that `git diff` detects changes - name: Create symlink in GOPATH @@ -92,20 +96,25 @@ jobs: with: path: /home/runner/go/bin key: go-bin-v1-${{ hashFiles('**/go.mod') }} + - name: Install protoc run: | make install-toolchain + - name: Add ~/go/bin to PATH run: | echo "/home/runner/go/bin" >> $GITHUB_PATH + - name: Add /usr/local/bin to PATH run: | echo "/usr/local/bin" >> $GITHUB_PATH + - name: Run codegen run: | make go-mod-vendor make codegen make manifests make docs + - name: Ensure nothing changed run: git diff --exit-code