Skip to content

Commit d2c1b54

Browse files
authored
Merge pull request #155 from mauriciopoppe/bump-to-v1
Bump v1beta3 APIs to v1
2 parents 85b1350 + 1a31fdc commit d2c1b54

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+13925
-8
lines changed

.github/workflows/windows.yml

Lines changed: 38 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ jobs:
88
integration_tests:
99
strategy:
1010
matrix:
11-
go-versions: [1.13.x]
11+
go: ['1.16']
1212
platform: [windows-latest]
1313
runs-on: ${{ matrix.platform }}
1414
steps:
1515
- name: Install Go
16-
uses: actions/setup-go@v1
16+
uses: actions/setup-go@v2
1717
with:
1818
go-version: ${{ matrix.go-version }}
1919
- name: Checkout code
@@ -36,16 +36,49 @@ jobs:
3636
unit_tests:
3737
strategy:
3838
matrix:
39-
go-versions: [1.13.x]
39+
go: ['1.16']
4040
platform: [windows-latest]
4141
runs-on: ${{ matrix.platform }}
4242
steps:
4343
- name: Install Go
44-
uses: actions/setup-go@v1
44+
uses: actions/setup-go@v2
4545
with:
46-
go-version: ${{ matrix.go-version }}
46+
go-version: ${{ matrix.go }}
4747
- name: Checkout code
4848
uses: actions/checkout@v2
4949
- name: Run Windows Unit Tests
5050
run: |
5151
go test -v -race ./pkg/...
52+
53+
bump_version_test:
54+
strategy:
55+
matrix:
56+
go: ['1.16']
57+
platform: [ubuntu-latest]
58+
runs-on: ${{ matrix.platform }}
59+
steps:
60+
- name: Install Go
61+
uses: actions/setup-go@v2
62+
with:
63+
go-version: ${{ matrix.go }}
64+
- name: Install Tools
65+
run: |
66+
echo "${HOME}/.local/bin" >> $GITHUB_PATH
67+
echo "/home/runner/work/csi-proxy/csi-proxy/go/bin" >> $GITHUB_PATH
68+
PB_REL="https://github.com/protocolbuffers/protobuf/releases"
69+
curl -LO $PB_REL/download/v3.15.8/protoc-3.15.8-linux-x86_64.zip
70+
unzip protoc-3.15.8-linux-x86_64.zip -d $HOME/.local
71+
- name: Checkout code
72+
uses: actions/checkout@v2
73+
with:
74+
fetch-depth: 1
75+
path: go/src/github.com/kubernetes-csi/csi-proxy
76+
- name: Run bump version script
77+
env:
78+
GOPATH: /home/runner/work/csi-proxy/csi-proxy/go
79+
GOBIN: /home/runner/work/csi-proxy/csi-proxy/go/bin
80+
run: |
81+
go get -u github.com/golang/protobuf/{proto,protoc-gen-go}
82+
protoc --version
83+
cd /home/runner/work/csi-proxy/csi-proxy/go/src/github.com/kubernetes-csi/csi-proxy
84+
API_GROUP=filesystem OLD_API_VERSION=v1beta2 NEW_API_VERSION=v99 scripts/bump-version.sh

0 commit comments

Comments
 (0)