Skip to content

Commit

Permalink
[debug] fix $GOPATH
Browse files Browse the repository at this point in the history
  • Loading branch information
mauriciopoppe committed Jun 16, 2021
1 parent 05d20a0 commit dbd3518
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 10 deletions.
30 changes: 22 additions & 8 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ jobs:
integration_tests:
strategy:
matrix:
go-versions: [1.13.x]
go: ['1.16']
platform: [windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v1
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
Expand All @@ -36,14 +36,14 @@ jobs:
unit_tests:
strategy:
matrix:
go-versions: [1.13.x]
go: ['1.16']
platform: [windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v1
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
go-version: ${{ matrix.go }}
- name: Checkout code
uses: actions/checkout@v2
- name: Run Windows Unit Tests
Expand All @@ -53,16 +53,30 @@ jobs:
bump_version_test:
strategy:
matrix:
go-versions: [1.16.x]
go: ['1.16']
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v1
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
go-version: ${{ matrix.go }}
- name: Install Tools
run: |
echo "${HOME}/.local/bin" >> $GITHUB_PATH
PB_REL="https://github.com/protocolbuffers/protobuf/releases"
curl -LO $PB_REL/download/v3.15.8/protoc-3.15.8-linux-x86_64.zip
unzip protoc-3.15.8-linux-x86_64.zip -d $HOME/.local
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 1
path: go/src/github.com/kubernetes-csi/csi-proxy
- name: Run bump version script
env:
GOPATH: /home/runner/work/csi-proxy/csi-proxy/go
GOBIN: /home/runner/work/csi-proxy/csi-proxy/go/bin
run: |
protoc --version
cd /home/runner/work/csi-proxy/csi-proxy/go/src/github.com/kubernetes-csi/csi-proxy
API_GROUP=filesystem OLD_API_VERSION=v1beta2 NEW_API_VERSION=v99 scripts/bump-version.sh
7 changes: 5 additions & 2 deletions scripts/bump-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ function generate_client_files {
# the path to regenerate
target=$1

# delete the vendor folder, otherwise generate-protobuf is going to create a wrong path
# delete the vendor folder, otherwise generate-protobuf is going to create a wrong path in the api.pb.go file
rm -rf vendor

rm client/api/$target/api.pb.go || true
rm client/groups/$target/client_generated.go || true

# generate client_generated.go
Expand Down Expand Up @@ -116,6 +116,9 @@ EOF
}

function main {
printenv | sort | uniq
protoc --version

validate_args
bump_client
bump_server
Expand Down

0 comments on commit dbd3518

Please sign in to comment.