Skip to content

Add tests

Add tests #346

Workflow file for this run

on: [push, pull_request]
name: Test
jobs:
test-linux:
strategy:
matrix:
go-version: [1.20.x, 1.21.x]
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v1
- name: Test
run: go test ./...
- name: Bench
run: go test -benchmem -bench . ./...
test-macos:
strategy:
matrix:
go-version: [1.20.x, 1.21.x]
runs-on: macos-latest
steps:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v1
- name: Test
run: go test ./...
- name: Bench
run: go test -benchmem -bench . ./...
test-windows:
strategy:
matrix:
go-version: [1.20.x, 1.21.x]
runs-on: windows-latest
steps:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v1
- name: Test
run: go test ./...
- name: Bench
run: go test -benchmem -bench . ./...