M3: add cli stage (cocoon-macos vm run clones+boots tahoe:26 + SSH te… #11
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: ['*'] | |
| paths-ignore: | |
| - 'os-image/**' | |
| - 'scripts/**' | |
| pull_request: | |
| paths-ignore: | |
| - 'os-image/**' | |
| - 'scripts/**' | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout cocoon-macos | |
| uses: actions/checkout@v5 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: Vet | |
| run: go vet ./... | |
| - name: Test | |
| run: go test -race -timeout 120s -count=1 ./... | |
| - name: Build | |
| run: CGO_ENABLED=0 go build -o cocoon-macos . |