Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: upgrades CI to support 1.23 #89

Merged
merged 2 commits into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ jobs:
strategy:
matrix:
go-version: # Note: Go only supports 2 versions: https://go.dev/doc/devel/release#policy
- "1.20"
- "1.21"
- "1.22"
- "1.23"

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -60,8 +60,8 @@ jobs:
strategy:
matrix:
go-version: # Note: Go only supports 2 versions: https://go.dev/doc/devel/release#policy
- "1.20"
- "1.21"
- "1.22"
- "1.23"

steps:
- name: "Checkout"
Expand Down Expand Up @@ -89,19 +89,19 @@ jobs:
- name: "Set up Go"
uses: actions/setup-go@v4
with:
go-version: "1.21"
go-version: "1.23"
cache: true

- name: "Set up TinyGo"
uses: acifani/setup-tinygo@v1
with:
tinygo-version: 0.30.0
tinygo-version: 0.33.0

- name: "Cache TinyGo build"
uses: actions/cache@v3
with:
path: ~/.cache/tinygo
key: tinygo-0.30.0
key: tinygo-0.33.0

- name: "Build TCK"
run: make tck
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
gofumpt := mvdan.cc/[email protected]
gosimports := github.com/rinchsan/gosimports/cmd/[email protected]
golangci_lint := github.com/golangci/golangci-lint/cmd/golangci-lint@v1.55.0
golangci_lint := github.com/golangci/golangci-lint/cmd/golangci-lint@v1.61.0

.PHONY: testdata
testdata:
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module github.com/http-wasm/http-wasm-host-go

go 1.19
go 1.21

require github.com/tetratelabs/wazero v1.5.0
require github.com/tetratelabs/wazero v1.8.0
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github.com/tetratelabs/wazero v1.5.0 h1:Yz3fZHivfDiZFUXnWMPUoiW7s8tC1sjdBtlJn08qYa0=
github.com/tetratelabs/wazero v1.5.0/go.mod h1:0U0G41+ochRKoPKCJlh0jMg1CHkyfK8kDqiirMmKY8A=
github.com/tetratelabs/wazero v1.8.0 h1:iEKu0d4c2Pd+QSRieYbnQC9yiFlMS9D+Jr0LsRmcF4g=
github.com/tetratelabs/wazero v1.8.0/go.mod h1:yAI0XTsMBhREkM/YDAK/zNou3GoiAce1P6+rp/wQhjs=
6 changes: 3 additions & 3 deletions handler/middleware_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ import (
"reflect"
"testing"

"github.com/http-wasm/http-wasm-host-go/api/handler"
"github.com/http-wasm/http-wasm-host-go/internal/test"
"github.com/tetratelabs/wazero"
"github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1"

"github.com/http-wasm/http-wasm-host-go/api/handler"
"github.com/http-wasm/http-wasm-host-go/internal/test"
)

var testCtx = context.Background()
Expand Down Expand Up @@ -64,7 +65,6 @@ func TestAlreadyExistingWasipModulue(t *testing.T) {
}
return r, nil
}))

if err != nil {
t.Fatal(err)
}
Expand Down
Binary file modified tck/tck.wasm
Binary file not shown.
Loading