Merge pull request #375 from ReadAlongs/dev.del-feat-e2e #49
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: 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 |