Skip to content

Commit 62ee8b4

Browse files
committed
update github CI flow
1 parent 377bce1 commit 62ee8b4

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

.github/workflows/echo-contrib.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,32 +19,33 @@ on:
1919
- '_fixture/**'
2020
- '.github/**'
2121
- 'codecov.yml'
22+
workflow_dispatch:
2223

2324
jobs:
2425
test:
2526
env:
26-
latest: '1.17'
27+
latest: '1.18'
2728
strategy:
2829
matrix:
2930
os: [ubuntu-latest, macos-latest, windows-latest]
30-
go: ['1.14', '1.15', '1.16', '1.17']
31+
go: ['1.16', '1.17', '1.18']
3132
name: ${{ matrix.os }} @ Go ${{ matrix.go }}
3233
runs-on: ${{ matrix.os }}
3334
steps:
3435
- name: Set up Go ${{ matrix.go }}
35-
uses: actions/setup-go@v2
36+
uses: actions/setup-go@v3
3637
with:
3738
go-version: ${{ matrix.go }}
3839

3940
- name: Checkout Code
40-
uses: actions/checkout@v2
41+
uses: actions/checkout@v3
4142
with:
4243
ref: ${{ github.ref }}
4344

4445
- name: Run static checks
4546
if: matrix.go == env.latest && matrix.os == 'ubuntu-latest'
4647
run: |
47-
go get -u honnef.co/go/tools/cmd/staticcheck@latest
48+
go install honnef.co/go/tools/cmd/staticcheck@latest
4849
staticcheck -tests=false ./...
4950
5051
- name: Run Tests
@@ -53,36 +54,36 @@ jobs:
5354
5455
- name: Upload coverage to Codecov
5556
if: success() && matrix.go == env.latest && matrix.os == 'ubuntu-latest'
56-
uses: codecov/codecov-action@v2
57+
uses: codecov/codecov-action@v3
5758
with:
5859
fail_ci_if_error: false
5960
benchmark:
6061
needs: test
6162
strategy:
6263
matrix:
6364
os: [ubuntu-latest]
64-
go: [1.17]
65+
go: [1.18]
6566
name: Benchmark comparison ${{ matrix.os }} @ Go ${{ matrix.go }}
6667
runs-on: ${{ matrix.os }}
6768
steps:
6869
- name: Set up Go ${{ matrix.go }}
69-
uses: actions/setup-go@v2
70+
uses: actions/setup-go@v3
7071
with:
7172
go-version: ${{ matrix.go }}
7273

7374
- name: Checkout Code (Previous)
74-
uses: actions/checkout@v2
75+
uses: actions/checkout@v3
7576
with:
7677
ref: ${{ github.base_ref }}
7778
path: previous
7879

7980
- name: Checkout Code (New)
80-
uses: actions/checkout@v2
81+
uses: actions/checkout@v3
8182
with:
8283
path: new
8384

8485
- name: Install Dependencies
85-
run: go get -v golang.org/x/perf/cmd/benchstat
86+
run: go install golang.org/x/perf/cmd/benchstat@latest
8687

8788
- name: Run Benchmark (Previous)
8889
run: |

0 commit comments

Comments
 (0)