Skip to content

Add tests, test-gen command, review fixes, README, CI #1

Add tests, test-gen command, review fixes, README, CI

Add tests, test-gen command, review fixes, README, CI #1

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build-and-test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: src
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: src/go.mod
- name: Build
run: go build ./...
- name: Vet
run: go vet ./...
- name: Test
run: go test ./... -v -race -count=1
- name: Check formatting
run: |
gofmt -l .
test -z "$(gofmt -l .)" || (echo "Files not formatted:" && gofmt -l . && exit 1)