Optimize CI to test only relevant Go versions

Co-authored-by: cursor.nop <cursor.nop@jimeh.info>
This commit is contained in:
Cursor Agent
2025-10-16 05:32:37 +00:00
parent 48b53e52d8
commit 1f80e6cc04
2 changed files with 6 additions and 11 deletions

View File

@@ -61,16 +61,11 @@ jobs:
- macos-latest
- windows-latest
go_version:
- "1.15"
- "1.16"
- "1.17"
- "1.18"
- "1.19"
- "1.20"
- "1.21"
- "1.22"
- "1.23"
- "1.24"
# Only test versions where testing.T interface changed:
- "1.15" # Base version
- "1.16" # Added Setenv()
- "1.17" # Representative of 1.17-1.23 (no changes)
- "1.24" # Added Context() and Chdir()
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4

View File

@@ -7,7 +7,7 @@ All notable changes to this project will be documented in this file. See [standa
### Features
* **testing:** Add support for Go 1.24 Context() and Chdir() methods
* **ci:** Test against Go 1.18-1.24 in addition to existing versions
* **ci:** Optimize test matrix - only test Go versions with testing.T changes (1.15, 1.16, 1.17, 1.24)
* **ci:** Upgrade all GitHub Actions to latest versions (v4-v6)
## 0.1.0 (2021-11-22)