Skip to content

Merge branch 'main' into chore/function-components #1564

Merge branch 'main' into chore/function-components

Merge branch 'main' into chore/function-components #1564

Workflow file for this run

name: CI
on: [push]
jobs:
lint:
timeout-minutes: 6
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v2
with:
node-version: 22
cache: yarn
- run: yarn set version stable
- run: yarn install --immutable
- run: yarn lint
- run: yarn format:check
cypress:
strategy:
fail-fast: false
matrix:
browser: [electron, firefox, chrome]
count: [1, 2]
name: Cypress in ${{ matrix.browser }} ${{ matrix.count }}
timeout-minutes: 10
runs-on: ubuntu-latest
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: yarn
- run: npm install -g wait-on &
- run: yarn set version stable
- run: yarn install --immutable
- run: yarn build
- name: Start dev server
run: yarn start | tee dev-server.log &
working-directory: apps/main
- run: yarn run cy:run:e2e --browser ${{ matrix.browser }}
working-directory: tests
env:
ELECTRON_ENABLE_LOGGING: true # send console logs to stdout in electron browser
NODE_ENV: test
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-main-${{ matrix.browser }}-${{ matrix.count }}
path: tests/cypress/screenshots
retention-days: 1
if-no-files-found: error
- uses: actions/upload-artifact@v4
if: failure()
with:
name: dev-server-log-${{ matrix.browser }}-${{ matrix.count }}
if-no-files-found: error
path: apps/main/dev-server.log