Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
Signed-off-by: PhilippPlotnikov <[email protected]>
  • Loading branch information
Philipp-Plotnikov committed Apr 5, 2022
1 parent 3b0ccdd commit 39fdcc9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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

0 comments on commit 39fdcc9

Please sign in to comment.