2022-11-05 04:04:13 +01:00
|
|
|
name: Go Tests
|
2020-07-15 01:37:41 +02:00
|
|
|
|
2022-06-29 23:34:37 +02:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths-ignore:
|
|
|
|
- 'web/**'
|
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- 'web/**'
|
|
|
|
|
2020-07-15 01:37:41 +02:00
|
|
|
jobs:
|
|
|
|
test:
|
2021-08-28 00:24:21 +02:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-08-04 17:53:12 +02:00
|
|
|
go-version: [1.18.x, 1.19.x]
|
2021-10-31 22:01:22 +01:00
|
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
2021-08-28 00:24:21 +02:00
|
|
|
runs-on: ${{ matrix.os }}
|
2020-07-15 01:37:41 +02:00
|
|
|
steps:
|
2022-04-10 13:54:39 +02:00
|
|
|
- uses: actions/checkout@v3
|
2020-07-15 01:37:41 +02:00
|
|
|
|
|
|
|
- name: Install go
|
2022-04-04 22:52:54 +02:00
|
|
|
uses: actions/setup-go@v3
|
2020-07-15 01:37:41 +02:00
|
|
|
with:
|
2022-06-29 23:34:37 +02:00
|
|
|
go-version: '^1'
|
2020-07-15 01:37:41 +02:00
|
|
|
|
|
|
|
- name: Run tests
|
2020-11-12 22:29:38 +01:00
|
|
|
run: go test ./...
|
2021-08-28 00:34:22 +02:00
|
|
|
|
|
|
|
test-bsds:
|
2022-07-27 23:17:35 +02:00
|
|
|
runs-on: macos-latest
|
2021-08-28 00:34:22 +02:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os:
|
|
|
|
- name: freebsd
|
|
|
|
version: 12.2
|
|
|
|
- name: openbsd
|
|
|
|
version: 6.8
|
|
|
|
|
|
|
|
steps:
|
2022-04-10 13:54:39 +02:00
|
|
|
- uses: actions/checkout@v3
|
2021-08-28 00:34:22 +02:00
|
|
|
|
|
|
|
- name: Install go
|
2022-04-04 22:52:54 +02:00
|
|
|
uses: actions/setup-go@v3
|
2021-08-28 00:34:22 +02:00
|
|
|
with:
|
2022-06-29 23:34:37 +02:00
|
|
|
go-version: '^1'
|
2021-08-28 00:34:22 +02:00
|
|
|
|
|
|
|
- name: Run tests
|
|
|
|
run: go test ./...
|