Skip to content

Commit

Permalink
Support go 1.19
Browse files Browse the repository at this point in the history
Update github action workflow to use 1.19 as default go version.
Update goreleaser version.
  • Loading branch information
miry committed Aug 26, 2022
1 parent fd1e655 commit 86edc8f
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 9 deletions.
1 change: 1 addition & 0 deletions .github/dependabot.yml
Expand Up @@ -10,6 +10,7 @@ updates:
directory: /
schedule:
interval: weekly

- package-ecosystem: github-actions
directory: /
schedule:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Expand Up @@ -56,7 +56,7 @@ jobs:
name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.17
go-version: 1.19

-
name: Build release changelog
Expand All @@ -70,7 +70,7 @@ jobs:
uses: goreleaser/goreleaser-action@68acf3b1adf004ac9c2f0a4259e85c5f66e99bef
with:
distribution: goreleaser
version: v0.184.0
version: v1.10.3
args: release --rm-dist --release-notes=tmp/release_changelog.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10 changes: 6 additions & 4 deletions .github/workflows/test.yml
Expand Up @@ -14,17 +14,19 @@ jobs:
strategy:
fail-fast: true
matrix:
go: ["1.18", "1.17", "1.16", "1.15", "1.14"]
name: Go ${{ matrix.go }}
go: ["1.19", "1.18", "1.17", "1.16", "1.15"]
name: go ${{ matrix.go }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}

- name: Tests
run: make test

Expand All @@ -42,7 +44,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@v3
with:
go-version: 1.18
go-version: 1.19

- name: E2E tests
run: make test-e2e
Expand All @@ -51,5 +53,5 @@ jobs:
uses: goreleaser/goreleaser-action@68acf3b1adf004ac9c2f0a4259e85c5f66e99bef
with:
distribution: goreleaser
version: v1.7.0
version: v1.10.3
args: build --snapshot --rm-dist --skip-post-hooks --skip-validate
2 changes: 1 addition & 1 deletion CHANGELOG.md
@@ -1,6 +1,6 @@
# [Unreleased]

* Support go 1.18.
* Support go 1.18, 1.19.

# [2.4.0] - 2022-03-07

Expand Down
2 changes: 1 addition & 1 deletion dev.yml
Expand Up @@ -13,5 +13,5 @@ up:
- shfmt
- yamllint
- go:
version: 1.18
version: 1.19
modules: true
2 changes: 1 addition & 1 deletion go.mod
@@ -1,6 +1,6 @@
module github.com/Shopify/toxiproxy/v2

go 1.18
go 1.19

require (
github.com/gorilla/mux v1.8.0
Expand Down

0 comments on commit 86edc8f

Please sign in to comment.