fix(staking): preserve validator UX on the train #707
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: Smoke Tests | |
| on: | |
| pull_request: | |
| schedule: | |
| - cron: '0 8 * * *' | |
| workflow_dispatch: | |
| jobs: | |
| smoke: | |
| name: Testnet Smoke Tests | |
| # The v0.40 line intentionally targets the resolution-kernel train and | |
| # does not support the currently deployed pre-train testnets. Its live | |
| # coverage comes from the cross-repository E2E stack until they upgrade. | |
| if: github.event_name != 'pull_request' || github.base_ref != 'v0.40-dev' | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| continue-on-error: true | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 18 | |
| cache: npm | |
| - run: npm ci | |
| # Smoke tests shell out to `node dist/index.js` to exercise the | |
| # compiled CLI — without a build first, that file doesn't exist | |
| # and the `genlayer staking validators` assertion fails with | |
| # MODULE_NOT_FOUND before it can hit the network at all. | |
| - name: Build CLI | |
| run: npm run build | |
| # The staking subcommands need a keystore for the default account | |
| # even for read-only listings (BaseAction loads the account to | |
| # report "your stake"). Create a throwaway one with a known | |
| # password so the subprocess test in tests/smoke.test.ts can run. | |
| - name: Create default keystore for CLI subprocess tests | |
| run: node dist/index.js account create --name default --password ci-smoke-test | |
| env: | |
| CI: true | |
| - name: Run smoke tests | |
| run: npm run test:smoke | |
| env: | |
| CLI_SMOKE_TIMEOUT_MS: 240000 |