2022-04-12 08:22:49 +02:00
|
|
|
name: Tests
|
2022-04-09 20:56:25 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2022-04-09 20:58:49 +02:00
|
|
|
branches: [ master ]
|
2022-04-09 20:56:25 +02:00
|
|
|
|
|
|
|
jobs:
|
2022-04-09 21:19:01 +02:00
|
|
|
test:
|
2022-04-17 19:50:37 +02:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, macos-latest]
|
2022-04-09 20:56:25 +02:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up Go
|
|
|
|
uses: actions/setup-go@v2
|
|
|
|
with:
|
|
|
|
go-version: 1.17
|
2022-04-09 21:19:01 +02:00
|
|
|
- name: Go test
|
2022-04-17 20:56:00 +02:00
|
|
|
if: ${{ !startsWith(github.event.head_commit.message, 'Release') }}
|
2022-04-09 20:56:25 +02:00
|
|
|
run: make test
|