Skip to content

Commit 71307f9

Browse files
authored
Support the four most recent major versions of Go (#969)
Fixes #963
1 parent 0a20a0e commit 71307f9

File tree

2 files changed

+22
-20
lines changed

2 files changed

+22
-20
lines changed

.github/workflows/ci.yml

+19-19
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
on:
22
push:
3-
branches: '**'
3+
branches: "**"
44
paths-ignore:
5-
- 'docs/**'
5+
- "docs/**"
66
pull_request:
7-
branches: '**'
7+
branches: "**"
88
paths-ignore:
9-
- 'docs/**'
9+
- "docs/**"
1010

1111
name: Test
1212
jobs:
@@ -20,23 +20,23 @@ jobs:
2020

2121
strategy:
2222
matrix:
23-
go-version: [1.15.x, 1.16.x, 1.17.x, 1.18.x, 1.19.x, 1.20.x, 1.21.x, 1.22.x, 1.23.x]
23+
go-version: [1.20.x, 1.21.x, 1.22.x, 1.23.x]
2424
os: [ubuntu-latest, windows-latest]
2525

2626
runs-on: ${{ matrix.os }}
2727

2828
steps:
29-
- name: Install Go
30-
uses: actions/setup-go@v5
31-
with:
32-
go-version: ${{ matrix.go-version }}
33-
check-latest: true
34-
cache: false
35-
- name: Checkout code
36-
uses: actions/checkout@v4
37-
with:
38-
path: ${{ env.GOPATH }}/src/github.com/${{ github.repository }}
39-
- name: Test
40-
run: |
41-
go get -d -t ./...
42-
make test
29+
- name: Install Go
30+
uses: actions/setup-go@v5
31+
with:
32+
go-version: ${{ matrix.go-version }}
33+
check-latest: true
34+
cache: false
35+
- name: Checkout code
36+
uses: actions/checkout@v4
37+
with:
38+
path: ${{ env.GOPATH }}/src/github.com/${{ github.repository }}
39+
- name: Test
40+
run: |
41+
go get -d -t ./...
42+
make test

go.mod

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
module github.com/go-chi/chi/v5
22

3-
go 1.14
3+
// Chi supports the four most recent major versions of Go.
4+
// See https://github.com/go-chi/chi/issues/963.
5+
go 1.20

0 commit comments

Comments
 (0)