docs: datastore migration guide #2013
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: CheckConsoleErrors | |
| on: | |
| pull_request: | |
| branches: [main] | |
| types: [opened, synchronize] | |
| env: | |
| BUILD_DIR: 'client/www/next-build' | |
| permissions: | |
| contents: read | |
| jobs: | |
| CheckConsoleErrors: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: Setup Node.js 20.x | |
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 | |
| with: | |
| node-version: 20.x | |
| - name: Set Yarn Berry | |
| uses: ./.github/actions/set_yarn_berry | |
| - name: Install Dependencies | |
| run: yarn | |
| - name: Install Chrome for Puppeteer | |
| run: npx puppeteer browsers install chrome | |
| - name: Run Build | |
| run: yarn build:release | |
| env: | |
| NODE_OPTIONS: --max_old_space_size=4096 | |
| - name: Run Server | |
| run: | | |
| python -m http.server 3000 -d ${{ env.BUILD_DIR }} & | |
| sleep 5 | |
| - name: Run Console Errors | |
| id: consoleErrors | |
| uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 | |
| with: | |
| result-encoding: string | |
| script: | | |
| const { consoleErrors } = require('./tasks/console-errors.js'); | |
| return await consoleErrors(); | |
| - name: Fail if console errors have been found | |
| if: ${{ steps.consoleErrors.outputs.result }} | |
| run: exit 1 |