Skip to content

Commit b40ca14

Browse files
committed
Update GH Actions
1 parent 913e6f4 commit b40ca14

2 files changed

Lines changed: 26 additions & 40 deletions

File tree

.github/workflows/ci.yml

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,45 +2,46 @@ name: ci
22

33
on:
44
push:
5-
branches: [ master ]
6-
tags: [ v* ]
5+
branches: [main]
6+
tags: [v*]
77
pull_request:
8-
branches: [ master ]
8+
branches: [main]
99

1010
jobs:
1111
matrix:
1212
strategy:
1313
matrix:
14-
go-version: [1.15.x, 1.14.x, 1.13.x]
14+
go-version: [^1.*, 1.18.x]
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/setup-go@v2
18-
with:
19-
go-version: ${{ matrix.go-version }}
20-
- uses: actions/checkout@v2
21-
- run: go get -v -t -d ./...
22-
- run: go test -v ./...
17+
- uses: actions/setup-go@v6
18+
with:
19+
go-version: ${{ matrix.go-version }}
20+
- uses: actions/checkout@v6
21+
- run: go test -v ./...
2322
coverage:
2423
runs-on: ubuntu-latest
2524
steps:
26-
- name: Coverage on latest 1.x Go
27-
uses: actions/setup-go@v2
28-
with:
29-
go-version: ^1.*
30-
- uses: actions/checkout@v2
31-
- run: go get -v -t -d ./...
32-
- run: go test -v -coverprofile=coverage.out -covermode=count ./...
33-
- uses: codecov/codecov-action@v1
34-
with:
35-
file: ./coverage.out
36-
fail_ci_if_error: true
25+
- name: Coverage on latest 1.x Go
26+
uses: actions/setup-go@v6
27+
with:
28+
go-version: ^1.*
29+
- uses: actions/checkout@v6
30+
- run: go test -v -coverprofile=coverage.out -covermode=count ./...
31+
- uses: codecov/codecov-action@v5
32+
with:
33+
token: ${{ secrets.CODECOV_TOKEN }}
34+
files: ./coverage.out
35+
fail_ci_if_error: true
3736
golangci:
3837
name: lint
3938
runs-on: ubuntu-latest
4039
steps:
41-
- uses: actions/checkout@v2
40+
- uses: actions/setup-go@v6
41+
with:
42+
go-version: ^1.*
43+
- uses: actions/checkout@v6
4244
- name: golangci-lint
43-
uses: golangci/golangci-lint-action@v2
45+
uses: golangci/golangci-lint-action@v9
4446
with:
45-
version: v1.34
46-
only-new-issues: true
47+
version: latest

.github/workflows/go-proxy-warming.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)