Skip to content

Commit

Permalink
ci: use github actions matrix
Browse files Browse the repository at this point in the history
Signed-off-by: Tuan Anh Tran <me@tuananh.org>
  • Loading branch information
tuananh authored and gconnell committed Jun 7, 2022
1 parent 770c3d8 commit e5eabf3
Showing 1 changed file with 17 additions and 81 deletions.
98 changes: 17 additions & 81 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,91 +1,27 @@
on: [push, pull_request]
name: Test
jobs:
test111:
runs-on: ubuntu-latest
test:
strategy:
matrix:
go-version:
- 1.11.x
- 1.12.x
- 1.13.x
- 1.14.x
- 1.15.x
- 1.16.x
- 1.17.x
- 1.18.x
os:
- ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.11.x
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Test
run: go test -v ./...
test112:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.12.x
- name: Checkout code
uses: actions/checkout@v2
- name: Test
run: go test -v ./...
test113:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.13.x
- name: Checkout code
uses: actions/checkout@v2
- name: Test
run: go test -v ./...
test114:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.14.x
- name: Checkout code
uses: actions/checkout@v2
- name: Test
run: go test -v ./...
test115:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.15.x
- name: Checkout code
uses: actions/checkout@v2
- name: Test
run: go test -v ./...
test116:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.16.x
- name: Checkout code
uses: actions/checkout@v2
- name: Test
run: go test -v ./...
test117:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.17.x
- name: Checkout code
uses: actions/checkout@v2
- name: Test
run: go test -v ./...
test118:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.18.x
- name: Checkout code
uses: actions/checkout@v2
- name: Test
run: go test -v ./...
run: go test -v ./...

0 comments on commit e5eabf3

Please sign in to comment.