Skip to content

tests

tests #667

Workflow file for this run

name: tests
on:
pull_request:
push:
branches:
- main
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
permissions:
contents: none
jobs:
compatibility:
strategy:
fail-fast: false
matrix:
go-version: [1.20.x, 1.21.x]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Setup Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: ${{ matrix.go-version }}
- name: Run Tests
run: make test
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Setup Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: 1.21.x
- name: Run benchmarks
run: make bench
- name: Run fuzzers
env:
# Run for 2 minutes to ensure it is working. Long runs happens nightly.
FUZZ_TIME: 2m
run: make fuzz