2021-10-12 11:48:41 +02:00
|
|
|
name: Test (master)
|
2020-04-04 06:34:00 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2020-05-05 13:32:37 +02:00
|
|
|
branches:
|
|
|
|
- '*'
|
2020-04-04 06:34:00 +02:00
|
|
|
pull_request:
|
2020-05-05 13:32:37 +02:00
|
|
|
branches:
|
|
|
|
- '*'
|
2020-04-04 06:34:00 +02:00
|
|
|
|
|
|
|
jobs:
|
2020-05-05 08:47:24 +02:00
|
|
|
test:
|
2020-04-04 06:34:00 +02:00
|
|
|
runs-on: ubuntu-latest
|
2020-05-05 08:47:24 +02:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-09-23 02:16:24 +02:00
|
|
|
go_version: [ '1.13', '1.14', '1.15', '1.16', '1.17' ]
|
2020-04-04 06:34:00 +02:00
|
|
|
steps:
|
2020-05-05 08:47:24 +02:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-go@v1
|
|
|
|
with:
|
|
|
|
go-version: ${{ matrix.go_version }}
|
2020-05-05 13:32:37 +02:00
|
|
|
|
|
|
|
- name: Install go dependencies
|
|
|
|
run: go get -t -v ./...
|
|
|
|
|
|
|
|
- name: Run go tests
|
|
|
|
run: go test -v -cover -race ./...
|
2020-05-04 21:02:27 +02:00
|
|
|
|