chore: remove dead code and test-only public API (#110) #2
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: HyperShell | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: hypershell-${{ github.repository }}-${{ github.ref }} | |
| cancel-in-progress: false | |
| jobs: | |
| canonical-remote: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| # This job builds and runs repository-controlled code; don't leave the | |
| # GITHUB_TOKEN in the local git config for it to reach. | |
| persist-credentials: false | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| - name: Build harness | |
| run: CGO_ENABLED=0 go build -ldflags '-s -w -X main.version=ci' -o harness . | |
| # Platform bootstrap adds this service-account subject to the gateway's | |
| # default workspace once. No administrator credential belongs in the repo. | |
| - name: Run canonical remote lifecycle | |
| env: | |
| HYPERSHELL_GATEWAY: ${{ secrets.HYPERSHELL_GATEWAY }} | |
| HYPERSHELL_OIDC_ISSUER: ${{ secrets.HYPERSHELL_OIDC_ISSUER }} | |
| HYPERSHELL_OIDC_AUDIENCE: ${{ secrets.HYPERSHELL_OIDC_AUDIENCE }} | |
| HYPERSHELL_SANDBOX_SA_ID: ${{ secrets.HYPERSHELL_SANDBOX_SA_ID }} | |
| OPENSHELL_OIDC_CLIENT_SECRET: ${{ secrets.HYPERSHELL_SANDBOX_SA_SECRET }} | |
| HYPERSHELL_SANDBOX_NAME: sdk-smoke-${{ github.run_id }}-${{ github.run_attempt }} | |
| run: | | |
| output="$(./harness apply "$HYPERSHELL_SANDBOX_NAME" \ | |
| --file test/hypershell-workflow.yaml)" | |
| echo "$output" | |
| grep -q 'canonical-sdk-ok' <<<"$output" |