feat(alarms): add alarm resource explorer #5897
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: UI Tests - Associated to last commit | |
on: [pull_request] | |
env: | |
PW_TEST_HTML_REPORT_OPEN: 'never' | |
jobs: | |
e2e-tests-playwright: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
lfs: 'true' | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 16 | |
cache: 'npm' | |
cache-dependency-path: '**/package-lock.json' | |
- name: Cache playwright binaries | |
uses: actions/cache@v4 | |
id: playwright-cache | |
with: | |
path: | | |
~/.cache/ms-playwright | |
key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }} | |
- name: Install | |
run: | |
npm ci --prefer-offline --no-audit --no-fund && npm run bootstrap | |
- name: Install Playwright's dependencies | |
run: npx playwright install --with-deps | |
- name: test UI | |
run: | |
npm run test:ui -w @iot-app-kit/dashboard --filter=[HEAD~1] && npm run test:ui -w @iot-app-kit/react-components --filter=[HEAD~1] --production && npm run test:ui -w @iot-app-kit/scene-composer --filter=[HEAD~1] --production | |
- uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: Playwright failed test-results | |
path: packages/**/test-results | |
retention-days: 30 | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: playwright-report | |
path: packages/**/playwright-report | |
retention-days: 30 |