[CONTENT/CHORE] Update babel to 2.14 #5793
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
# This workflow will run cypress tests | |
# If you change this name, don't forget to change deploy-to-alpha.yml | |
name: Cypress tests | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
# This identifier gets used in .mergify.yml | |
cypress: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
- name: Install Python dependencies | |
run: | | |
python3 -m pip install --upgrade pip | |
pip3 install -r requirements.txt | |
- name: Install Nodejs dependencies | |
run: | | |
npm ci | |
- name: Generate grammar files | |
run: | | |
python ./content/yaml_to_lark_utils.py | |
- name: Compiling Babel translations | |
run: | | |
pybabel compile -f -d translations | |
- name: Feed the dev database | |
# This replaces the json file, do it before starting the server | |
run: ./feed_dev_database.sh | |
- name: Bundle files | |
# Generates js and css files. | |
run: | | |
build-tools/heroku/tailwind/generate-development-css | |
build-tools/heroku/generate-typescript | |
- name: Start the server | |
# Runs in the background | |
run: build-tools/github/start-debug-server --daemon | |
- name: Cypress run | |
uses: cypress-io/github-action@v6 | |
with: | |
# We have already installed all dependencies | |
install: false | |
# Record to cypress cloud to inspect possible failing tests. | |
record: true | |
# Where cypress.config.js and all the other cypress files live, requires 'install: false' | |
working-directory: tests/ | |
env: | |
# pass the Cypress Cloud record key as an environment variable | |
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | |
# pass GitHub token to allow accurately detecting a build vs a re-run build | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |