Skip to content

Commit

Permalink
workflow: add more version build/test actions (#203)
Browse files Browse the repository at this point in the history
- Go 1.19 (to be dropped soon)
- Go 1.20
- Go 1.21rc3 (beta)
  • Loading branch information
gaukas committed Jul 30, 2023
1 parent c062ac9 commit b3e66ba
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/go.yml → .github/workflows/go_1_19.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ on:

jobs:

build:
go_1.19:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: 1.19
go-version: '1.19'

- name: Build
run: go build -v ./...
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/go_1_20.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go

name: Go

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:

go_1.20:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'

- name: Build
run: go build -v ./...

- name: Test
run: go test -v ./...
28 changes: 28 additions & 0 deletions .github/workflows/go_1_21_rc3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go

name: Go

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:

go_1.21rc3:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21.0-rc.3'

- name: Build
run: go build -v ./...

- name: Test
run: go test -v ./...

0 comments on commit b3e66ba

Please sign in to comment.