Skip to content

chore(ci): add cross-platform workflow and polish README #1

chore(ci): add cross-platform workflow and polish README

chore(ci): add cross-platform workflow and polish README #1

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
jobs:
build-test:
name: Build and Test (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Format check
run: |
fmt_out=$(gofmt -l .)
if [ -n "$fmt_out" ]; then
echo "The following files are not gofmt-formatted:"
echo "$fmt_out"
exit 1
fi
- name: Vet
run: go vet ./...
- name: Test
run: go test ./...
- name: Build
run: go build ./...