chore(ci): gate typecheck/test/build; add dependabot #58
Workflow file for this run
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 Smoke (Preprod) | |
| on: | |
| pull_request: | |
| branches: [main, preprod] | |
| workflow_dispatch: | |
| env: | |
| API_BASE_URL: ${{ secrets.SMOKE_API_BASE_URL }} | |
| SIGNER_MNEMONIC_1: ${{ secrets.SMOKE_SIGNER_MNEMONIC_1 }} | |
| SIGNER_MNEMONIC_2: ${{ secrets.SMOKE_SIGNER_MNEMONIC_2 }} | |
| BOT_MNEMONIC: ${{ secrets.SMOKE_BOT_MNEMONIC }} | |
| BOT_KEY_ID: ${{ secrets.SMOKE_BOT_KEY_ID }} | |
| BOT_SECRET: ${{ secrets.SMOKE_BOT_SECRET }} | |
| jobs: | |
| smoke: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Check secrets configured | |
| id: check-secrets | |
| run: | | |
| if [ -z "$API_BASE_URL" ]; then | |
| echo "configured=false" >> "$GITHUB_OUTPUT" | |
| echo "Smoke test skipped: SMOKE_* secrets not configured." | |
| else | |
| echo "configured=true" >> "$GITHUB_OUTPUT" | |
| fi | |
| - name: Install dependencies | |
| if: steps.check-secrets.outputs.configured == 'true' | |
| run: npm ci | |
| - name: Stage 1 - Bootstrap wallets | |
| if: steps.check-secrets.outputs.configured == 'true' | |
| run: npx tsx scripts/ci-smoke/create-wallets.ts | |
| - name: Stage 2 - Run route chain | |
| if: steps.check-secrets.outputs.configured == 'true' | |
| run: npx tsx scripts/ci-smoke/run-route-chain.ts | |
| - name: Upload smoke artifacts | |
| uses: actions/upload-artifact@v4 | |
| if: always() && steps.check-secrets.outputs.configured == 'true' | |
| with: | |
| name: smoke-report | |
| path: ci-artifacts/ | |
| retention-days: 14 |