Repository navigation
fix(useBountyStatus): retain live bounty state and surface error on transient poll failures (#571) #406
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 | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-and-lint: | |
| runs-on: ubuntu-latest | |
| # next.config.ts validates NEXT_PUBLIC_STELLAR_NETWORK on every Next.js | |
| # command (build, dev, start) — not just `build` — so `verify:headers`'s | |
| # own `next start` needs this too, not only the `build` step. Set once | |
| # at the job level rather than repeating it per-step, so a future step | |
| # that also invokes `next` doesn't quietly reintroduce this gap. | |
| # verify:env intentionally strips this back out before each of its own | |
| # test builds (see scripts/verify-env-validation.mjs), so it isn't | |
| # affected by the default set here. | |
| env: | |
| NEXT_PUBLIC_STELLAR_NETWORK: TESTNET | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| - name: Cache Next.js build | |
| uses: actions/cache@v4 | |
| with: | |
| path: .next/cache | |
| key: ${{ runner.os }}-nextjs-${{ hashFiles('package-lock.json') }}-${{ hashFiles('src/**') }} | |
| restore-keys: | | |
| ${{ runner.os }}-nextjs-${{ hashFiles('package-lock.json') }}- | |
| - run: npm ci | |
| - run: npm run lint | |
| - run: npm test | |
| - run: npm run verify:env | |
| - run: npm run build | |
| - run: npm run verify:headers | |
| - run: npm audit --audit-level=high |