feat(cli): add apply, execute, and repair commands (#13) #34
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: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| verify: | |
| name: Verify | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| submodules: recursive | |
| - name: Set up Go | |
| if: hashFiles('go.mod') != '' | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: "1.26.3" | |
| cache: true | |
| - name: Verify Go workspace | |
| if: hashFiles('go.mod') != '' | |
| run: | | |
| set -euo pipefail | |
| go version | |
| if [ -d contract ]; then | |
| go mod edit -replace github.com/nucleuskit/contract=./contract | |
| fi | |
| go test ./... | |
| - name: Verify docs-only seed | |
| if: hashFiles('go.mod') == '' | |
| run: | | |
| set -euo pipefail | |
| test -f README.md | |
| test -f LICENSE | |
| test -f CONTRIBUTING.md | |
| test -f SECURITY.md | |
| echo "No Go module has been imported yet; docs seed verified." |