Skip to content

Commit

Permalink
ci: add go unit test for v1.12 v1.16 v1.18
Browse files Browse the repository at this point in the history
  • Loading branch information
go-compile committed Nov 20, 2022
1 parent 6cc6178 commit ef2b39d
Showing 1 changed file with 69 additions and 0 deletions.
69 changes: 69 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Go

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

jobs:
test-linux-go-1.12:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.12

- name: Test
run: go test -v ./...
test-linux-go-1.16:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16

- name: Test
run: go test -v ./...
test-linux-go-1.18:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18

- name: Test
run: go test -v ./...
test-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17

- name: Test
run: go test -v ./...
test-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17

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

0 comments on commit ef2b39d

Please sign in to comment.