Skip to content

Commit

Permalink
ci: pin go version to support 1.19 and 1.20 (#247)
Browse files Browse the repository at this point in the history
* ci: pin go version to support 1.19 and 1.20

* make: disable buildvcs

See golang/go#26746
  • Loading branch information
scbizu authored Feb 21, 2023
1 parent 7bfe7d4 commit 91827ee
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
name: "mysql"
strategy:
matrix:
go: [1.18]
go: ["1.18","1.19","1.20"]
runs-on: ubuntu-latest
container:
image: golang:${{ matrix.go }}-stretch
image: golang:${{ matrix.go }}
services:
mysql:
image: mysql:5.7
Expand All @@ -35,7 +35,7 @@ jobs:
--health-retries=3
steps:
- name: checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: generate template
run: |
make build
Expand All @@ -50,10 +50,10 @@ jobs:
name: "mysqlr"
strategy:
matrix:
go: [1.18]
go: [1.18,1.19,"1.20"]
runs-on: ubuntu-latest
container:
image: golang:${{ matrix.go }}-stretch
image: golang:${{ matrix.go }}
services:
mysql:
image: mysql:5.7
Expand All @@ -71,7 +71,7 @@ jobs:
--health-retries=3
steps:
- name: checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: generate template
run: |
make build
Expand All @@ -86,10 +86,10 @@ jobs:
name: "mongo"
strategy:
matrix:
go: [1.18]
go: [1.18,1.19,"1.20"]
runs-on: ubuntu-latest
container:
image: golang:${{ matrix.go }}-stretch
image: golang:${{ matrix.go }}
services:
mongo:
image: mongo:4.2
Expand All @@ -100,7 +100,7 @@ jobs:
MONGO_INITDB_ROOT_PASSWORD: ezbuyisthebest
steps:
- name: checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: generate template
run: |
make build
Expand All @@ -118,13 +118,13 @@ jobs:
name: "customized-plugin"
strategy:
matrix:
go: [1.18]
go: [1.18,1.19,"1.20"]
runs-on: ubuntu-latest
container:
image: golang:${{ matrix.go }}-stretch
image: golang:${{ matrix.go }}
steps:
- name: checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: generate template
run: |
make build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/go-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.18.1'
go-version: '>=1.18.1'
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/parser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go: [1.18]
go: ["1.18","1.19","1.20"]
container:
image: golang:${{ matrix.go }}-stretch
image: golang:${{ matrix.go }}
steps:
- name: checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: run parser tests
run: |
go test -v ./internal/parser/x/query/...
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
all:

build:
go build -ldflags "-X main.Commit=$(shell git rev-parse --short HEAD)" -o bin/ezorm
go build -buildvcs=false -ldflags "-X main.Commit=$(shell git rev-parse --short HEAD)" -o bin/ezorm

build-plugin:
go build -o bin/ezorm-gen-hello-driver ./e2e/plugins/hello-driver
go build -buildvcs=false -o bin/ezorm-gen-hello-driver ./e2e/plugins/hello-driver
mv bin/ezorm-gen-hello-driver /go/bin

cleane2e:
Expand Down

0 comments on commit 91827ee

Please sign in to comment.