1
0
mirror of https://github.com/google/gops.git synced 2024-11-24 08:22:25 +02:00

Bump minimum Go version to 1.18, test on latest supported releases

Bump the minimum supported Go version to 1.18 in go.mod. Also make sure
CI is testing against the latest two versions supported upstream,
currently 1.21 and 1.22.
This commit is contained in:
Tobias Klauser 2024-05-03 18:41:47 +02:00 committed by Tobias Klauser
parent 48b357e78c
commit dea1b030f0
2 changed files with 4 additions and 4 deletions

View File

@ -12,8 +12,8 @@ jobs:
test: test:
strategy: strategy:
matrix: matrix:
# Minimum supported version (1.17) and the latest two # Minimum supported version (1.18) and the latest two
go-version: ['1.17', '1.19', '1.20'] go-version: ['1.18', '1.21', '1.22']
platform: [ubuntu-latest, macos-latest, windows-latest] platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }} runs-on: ${{ matrix.platform }}
@ -27,7 +27,7 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Check formatting - name: Check formatting
if: matrix.go-version == '1.20' && matrix.platform == 'ubuntu-latest' if: matrix.go-version == '1.22' && matrix.platform == 'ubuntu-latest'
run: diff -u <(echo -n) <(go fmt $(go list ./...)) run: diff -u <(echo -n) <(go fmt $(go list ./...))
- name: Run unit tests - name: Run unit tests

2
go.mod
View File

@ -1,6 +1,6 @@
module github.com/google/gops module github.com/google/gops
go 1.17 go 1.18
require ( require (
github.com/shirou/gopsutil/v3 v3.24.3 github.com/shirou/gopsutil/v3 v3.24.3