✨ Adds consistent redirects handling for cf workers. #23508
Workflow file for this run
This file contains 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: Continuous Integration | |
on: [push, pull_request] | |
jobs: | |
# Checks for prettify errors, TypeScript errors and runs Jest tests. | |
testdbcheck: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup-node-yarn-deps | |
- name: Install dependencies | |
run: cp .env.example-grapher .env | |
shell: bash | |
- name: Build and run db tests | |
run: make dbtest | |
timeout-minutes: 6 | |
testcheck: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup-node-yarn-deps | |
- name: Run prettier | |
run: yarn testPrettierAll | |
- name: Run tsc build | |
run: yarn buildTsc | |
- name: Run tsc buildTests | |
run: yarn lerna run buildTests | |
- name: Run jest | |
run: yarn testJest | |
eslint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup-node-yarn-deps | |
- name: Run eslint | |
# the --max-warnings makes eslint exit with non-zero exit code even for warnings | |
run: yarn testLint --max-warnings=0 | |
# Runs `bundlewatch` on the code to see if our Vite build assets exceed a given file size. | |
bundlewatch: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup-node-yarn-deps | |
- uses: ./.github/actions/build-tsc | |
- name: Run bundlewatch | |
run: yarn testBundlewatch | |
env: | |
BUNDLEWATCH_GITHUB_TOKEN: "${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}" |