Skip to content

Commit 2eb5d0f

Browse files
committed
Add go1.17
1 parent b225de5 commit 2eb5d0f

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

templates/github/workflows/bench.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
bench:
2121
strategy:
2222
matrix:
23-
go-version: [ 1.16.x ]
23+
go-version: [ 1.17.x ]
2424
runs-on: ubuntu-latest
2525
steps:
2626
- name: Install Go

templates/github/workflows/gorelease.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
gorelease:
99
strategy:
1010
matrix:
11-
go-version: [ 1.16.x ]
11+
go-version: [ 1.17.x ]
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Install Go
@@ -32,13 +32,13 @@ jobs:
3232
OUTPUT="${OUTPUT//$'\n'/'%0A'}"
3333
OUTPUT="${OUTPUT//$'\r'/'%0D'}"
3434
echo "::set-output name=report::$OUTPUT"
35-
- name: Comment Gorelase Report
35+
- name: Comment Report
3636
uses: marocchino/sticky-pull-request-comment@v2
3737
with:
3838
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3939
header: gorelease
4040
message: |
41-
### Exported API Changes Report
41+
### API Changes
4242
4343
<pre>
4444
${{ steps.gorelease.outputs.report }}

templates/github/workflows/release-assets.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
name: Upload Release Assets
1515
strategy:
1616
matrix:
17-
go-version: [ 1.16.x ]
17+
go-version: [ 1.17.x ]
1818
runs-on: ubuntu-latest
1919
steps:
2020
- name: Install Go

templates/github/workflows/test-integration.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
test:
1414
strategy:
1515
matrix:
16-
go-version: [ 1.16.x ]
16+
go-version: [ 1.17.x ]
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Install Go
@@ -35,23 +35,23 @@ jobs:
3535
restore-keys: |
3636
${{ runner.os }}-go-cache
3737
- name: Restore base test coverage
38-
if: matrix.go-version == '1.16.x'
38+
if: matrix.go-version == '1.17.x'
3939
uses: actions/cache@v2
4040
with:
4141
path: |
4242
integration-base.txt
4343
# Use base sha for PR or new commit hash for master/main push in test result key.
4444
key: ${{ runner.os }}-integration-test-coverage-${{ (github.event.pull_request.base.sha != github.event.after) && github.event.pull_request.base.sha || github.event.after }}
4545
- name: Checkout base code
46-
if: matrix.go-version == '1.16.x' && env.RUN_BASE_COVERAGE == 'on' && steps.benchmark-base.outputs.cache-hit != 'true' && github.event.pull_request.base.sha != ''
46+
if: matrix.go-version == '1.17.x' && env.RUN_BASE_COVERAGE == 'on' && steps.benchmark-base.outputs.cache-hit != 'true' && github.event.pull_request.base.sha != ''
4747
uses: actions/checkout@v2
4848
with:
4949
ref: ${{ github.event.pull_request.base.sha }}
5050
path: __base
5151
- name: Docker Compose
5252
run: (test -f ./dev/docker-compose.integration-test.yml && docker-compose -f ./dev/docker-compose.integration-test.yml up -d && docker ps && docker-compose -f ./dev/docker-compose.integration-test.yml logs) || echo "::warning ::Missing ./dev/docker-compose.integration-test.yml file"
5353
- name: Run test for base code
54-
if: matrix.go-version == '1.16.x' && env.RUN_BASE_COVERAGE == 'on' && steps.benchmark-base.outputs.cache-hit != 'true' && github.event.pull_request.base.sha != ''
54+
if: matrix.go-version == '1.17.x' && env.RUN_BASE_COVERAGE == 'on' && steps.benchmark-base.outputs.cache-hit != 'true' && github.event.pull_request.base.sha != ''
5555
run: |
5656
cd __base
5757
make | grep test-integration && (make test-integration && go tool cover -func=./integration.coverprofile | sed -e 's/.go:[0-9]*:\t/.go\t/g' | sed -e 's/\t\t*/\t/g' > ../integration-base.txt) || echo "No test-integration in base"
@@ -71,7 +71,7 @@ jobs:
7171
if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' }}
7272
run: cp integration.txt integration-base.txt
7373
- name: Comment Test Coverage
74-
if: matrix.go-version == '1.16.x'
74+
if: matrix.go-version == '1.17.x'
7575
uses: marocchino/sticky-pull-request-comment@v2
7676
with:
7777
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -87,7 +87,7 @@ jobs:
8787
</details>
8888
8989
- name: Upload code coverage
90-
if: matrix.go-version == '1.16.x'
90+
if: matrix.go-version == '1.17.x'
9191
uses: codecov/codecov-action@v1
9292
with:
9393
file: ./integration.coverprofile

templates/github/workflows/test-unit.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
test:
1414
strategy:
1515
matrix:
16-
go-version: [ 1.13.x, 1.14.x, 1.15.x, 1.16.x ]
16+
go-version: [ 1.13.x, 1.14.x, 1.15.x, 1.16.x, 1.17.x ]
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Install Go
@@ -35,21 +35,21 @@ jobs:
3535
restore-keys: |
3636
${{ runner.os }}-go-cache
3737
- name: Restore base test coverage
38-
if: matrix.go-version == '1.16.x'
38+
if: matrix.go-version == '1.17.x'
3939
uses: actions/cache@v2
4040
with:
4141
path: |
4242
unit-base.txt
4343
# Use base sha for PR or new commit hash for master/main push in test result key.
4444
key: ${{ runner.os }}-unit-test-coverage-${{ (github.event.pull_request.base.sha != github.event.after) && github.event.pull_request.base.sha || github.event.after }}
4545
- name: Checkout base code
46-
if: matrix.go-version == '1.16.x' && env.RUN_BASE_COVERAGE == 'on' && steps.benchmark-base.outputs.cache-hit != 'true' && github.event.pull_request.base.sha != ''
46+
if: matrix.go-version == '1.17.x' && env.RUN_BASE_COVERAGE == 'on' && steps.benchmark-base.outputs.cache-hit != 'true' && github.event.pull_request.base.sha != ''
4747
uses: actions/checkout@v2
4848
with:
4949
ref: ${{ github.event.pull_request.base.sha }}
5050
path: __base
5151
- name: Run test for base code
52-
if: matrix.go-version == '1.16.x' && env.RUN_BASE_COVERAGE == 'on' && steps.benchmark-base.outputs.cache-hit != 'true' && github.event.pull_request.base.sha != ''
52+
if: matrix.go-version == '1.17.x' && env.RUN_BASE_COVERAGE == 'on' && steps.benchmark-base.outputs.cache-hit != 'true' && github.event.pull_request.base.sha != ''
5353
run: |
5454
cd __base
5555
make | grep test-unit && (make test-unit && go tool cover -func=./unit.coverprofile | sed -e 's/.go:[0-9]*:\t/.go\t/g' | sed -e 's/\t\t*/\t/g' > ../unit-base.txt) || echo "No test-unit in base"
@@ -69,7 +69,7 @@ jobs:
6969
if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' }}
7070
run: cp unit.txt unit-base.txt
7171
- name: Comment Test Coverage
72-
if: matrix.go-version == '1.16.x'
72+
if: matrix.go-version == '1.17.x'
7373
uses: marocchino/sticky-pull-request-comment@v2
7474
with:
7575
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -85,7 +85,7 @@ jobs:
8585
</details>
8686
8787
- name: Upload code coverage
88-
if: matrix.go-version == '1.16.x'
88+
if: matrix.go-version == '1.17.x'
8989
uses: codecov/codecov-action@v1
9090
with:
9191
file: ./unit.coverprofile

0 commit comments

Comments
 (0)