rewrite skills to use json. update execute skill #14
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: test | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| cache: true | |
| - name: Download dependencies | |
| run: go mod download | |
| - name: Verify generated schema is up to date | |
| run: | | |
| go generate ./... | |
| if ! git diff --exit-code internal/spec/extracted_gen.go; then | |
| echo "::error::internal/spec/extracted_gen.go is stale. Run 'go generate ./...' and commit the result." | |
| exit 1 | |
| fi | |
| - name: Run tests | |
| run: go test ./... -v -race -coverprofile=coverage.out | |
| - name: Upload coverage | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage | |
| path: coverage.out |