Skip to content

Fix #179 security hardening and #199 default model/CI #4

Fix #179 security hardening and #199 default model/CI

Fix #179 security hardening and #199 default model/CI #4

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: Check formatting
run: |
unformatted="$(gofmt -l .)"
if [ -n "$unformatted" ]; then
echo "The following files need gofmt:"
echo "$unformatted"
exit 1
fi
- name: Generate embedded workspace files
run: go generate ./cmd/picoclaw
- name: Run go vet
run: go vet ./...
- name: Run tests (race)
run: go test -race ./...