Skip to content

Commit

Permalink
all: require Go v1.19, test against Go v1.20, drop tests fo Go v1.18
Browse files Browse the repository at this point in the history
Signed-off-by: Robin Hahling <[email protected]>
  • Loading branch information
rolinh authored and kaworu committed Feb 13, 2023
1 parent ff8d1fe commit e9d7933
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
main:
strategy:
matrix:
go-version: [1.18, 1.19]
go-version: ["1.19", "1.20"]
runs-on: ubuntu-latest
steps:
- name: Install Go
Expand All @@ -33,15 +33,15 @@ jobs:
skip-cache: true
- name: Check module tidiness
run: |
go mod tidy -compat=1.18
go mod tidy -compat=1.19
go mod verify
test -z "$(git status --porcelain)" || (echo "please run 'go mod tidy -compat=1.18', and commit your changes"; exit 1)
test -z "$(git status --porcelain)" || (echo "please run 'go mod tidy -compat=1.19', and commit your changes"; exit 1)
- name: Run unit tests
run: make test
cmd:
strategy:
matrix:
go-version: [1.18, 1.19]
go-version: ["1.19", "1.20"]
runs-on: ubuntu-latest
steps:
- name: Install Go
Expand All @@ -63,16 +63,16 @@ jobs:
- name: Check module tidiness
working-directory: ./cmd
run: |
go mod tidy -compat=1.18
go mod tidy -compat=1.19
go mod verify
test -z "$(git status --porcelain)" || (echo "please run 'go mod tidy -compat=1.18', and commit your changes"; exit 1)
test -z "$(git status --porcelain)" || (echo "please run 'go mod tidy -compat=1.19', and commit your changes"; exit 1)
- name: Run unit tests
working-directory: ./cmd
run: make test
flow:
strategy:
matrix:
go-version: [1.18, 1.19]
go-version: ["1.19", "1.20"]
runs-on: ubuntu-latest
steps:
- name: Install Go
Expand All @@ -94,9 +94,9 @@ jobs:
- name: Check module tidiness
working-directory: ./flow
run: |
go mod tidy -compat=1.18
go mod tidy -compat=1.19
go mod verify
test -z "$(git status --porcelain)" || (echo "please run 'go mod tidy -compat=1.18', and commit your changes"; exit 1)
test -z "$(git status --porcelain)" || (echo "please run 'go mod tidy -compat=1.19', and commit your changes"; exit 1)
- name: Run unit tests
working-directory: ./flow
run: make test
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Also https://github.com/cilium/cilium/blob/master/.golangci.yaml as a
# reference.
run:
go: '1.19'
go: '1.20'
linters:
disable-all: true
enable:
Expand Down
2 changes: 1 addition & 1 deletion cmd/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/cilium/fake/cmd

go 1.18
go 1.19

require (
github.com/cilium/cilium v1.13.0-rc5
Expand Down
2 changes: 1 addition & 1 deletion flow/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/cilium/fake/flow

go 1.18
go 1.19

require (
github.com/cilium/cilium v1.13.0-rc5
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/cilium/fake

go 1.18
go 1.19

require github.com/stretchr/testify v1.8.1

Expand Down

0 comments on commit e9d7933

Please sign in to comment.