23 lines
460 B
YAML
Raw Normal View History

2020-11-23 14:20:53 -08:00
name: test
on:
push:
branches: [ main ]
2020-11-23 14:20:53 -08:00
pull_request:
branches: [ main ]
2020-11-23 14:20:53 -08:00
jobs:
test:
strategy:
matrix:
go-version: [1.21.x]
2020-11-23 14:20:53 -08:00
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Test
run: go test -v -race ./...