Skip to content

build: auto-update browserslist when serving studio-web #46

build: auto-update browserslist when serving studio-web

build: auto-update browserslist when serving studio-web #46

Workflow file for this run

name: Run tests on Windows
on:
push:
branches:
- main
jobs:
tests-on-windows:
runs-on: windows-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm install --verbose
- run: npx update-browserslist-db@latest
- name: Ng test for studio-web
run: |
npx nx build web-component
npx nx test:once studio-web
- name: Cypress run for web-component
uses: cypress-io/github-action@v6
with:
install: true # fails on Windows with install: false
start: |
npx nx serve web-component
npx nx serve-test-data web-component
wait-on: sleep 15 # there is no reliable URL to wait for...
command: npx nx test:once web-component
- run: npx nx extract-i18n studio-web
- run: npx nx check-l10n studio-web
- run: npx nx build ngx-web-component
- run: npx nx build studio-web
- run: npx nx bundle web-component