Send Bonus Milestone self-report and use API season rules #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: CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: ["main"] | |
| permissions: | |
| contents: read | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| cache: yarn | |
| - name: Install dependencies | |
| run: yarn install --frozen-lockfile --non-interactive | |
| - name: Unit tests | |
| run: yarn test:unit | |
| - name: Type check | |
| run: yarn typecheck | |
| - name: Lint | |
| run: yarn lint | |
| - name: Build production static site | |
| env: | |
| NEXT_STATIC_EXPORT: "true" | |
| NEXT_PUBLIC_BASE_PATH: "" | |
| NEXT_PUBLIC_ENABLE_ANALYTICS: "true" | |
| NEXT_PUBLIC_GA_ID: "G-SJNYKL2864" | |
| run: yarn build | |
| - name: Verify default Google Analytics and cookie notice | |
| run: | | |
| python3 scripts/verify-google-analytics-html.py \ | |
| out/index.html \ | |
| G-SJNYKL2864 |