Fix #179 security hardening and #199 default model/CI #4
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 ./... |