Skip to content

Commit

Permalink
Support the four most recent major versions of Go
Browse files Browse the repository at this point in the history
Fixes #963
  • Loading branch information
VojtechVitek committed Jan 16, 2025
1 parent 0a20a0e commit 35ec030
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 20 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
on:
push:
branches: '**'
branches: "**"
paths-ignore:
- 'docs/**'
- "docs/**"
pull_request:
branches: '**'
branches: "**"
paths-ignore:
- 'docs/**'
- "docs/**"

name: Test
jobs:
Expand All @@ -20,23 +20,23 @@ jobs:

strategy:
matrix:
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]
go-version: [1.20.x, 1.21.x, 1.22.x, 1.23.x]
os: [ubuntu-latest, windows-latest]

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

steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
check-latest: true
cache: false
- name: Checkout code
uses: actions/checkout@v4
with:
path: ${{ env.GOPATH }}/src/github.com/${{ github.repository }}
- name: Test
run: |
go get -d -t ./...
make test
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
check-latest: true
cache: false
- name: Checkout code
uses: actions/checkout@v4
with:
path: ${{ env.GOPATH }}/src/github.com/${{ github.repository }}
- name: Test
run: |
go get -d -t ./...
make test
4 changes: 3 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
module github.com/go-chi/chi/v5

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

0 comments on commit 35ec030

Please sign in to comment.