From 71307f9b7e4e9527638bc951c42b782cd1560331 Mon Sep 17 00:00:00 2001 From: "Vojtech Vitek (golang.cz)" Date: Mon, 20 Jan 2025 21:41:44 +0100 Subject: [PATCH] Support the four most recent major versions of Go (#969) Fixes https://github.com/go-chi/chi/issues/963 --- .github/workflows/ci.yml | 38 +++++++++++++++++++------------------- go.mod | 4 +++- 2 files changed, 22 insertions(+), 20 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a8f07b75..483845b9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,12 +1,12 @@ on: push: - branches: '**' + branches: "**" paths-ignore: - - 'docs/**' + - "docs/**" pull_request: - branches: '**' + branches: "**" paths-ignore: - - 'docs/**' + - "docs/**" name: Test jobs: @@ -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 diff --git a/go.mod b/go.mod index c084c1d5..cd49b280 100644 --- a/go.mod +++ b/go.mod @@ -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