refined step control

This commit is contained in:
Sigbjørn Skjæret 2025-12-17 00:44:59 +01:00 committed by GitHub
parent acecbf2a0d
commit 4e213dd2d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 12 additions and 6 deletions

View File

@ -34,6 +34,7 @@ jobs:
webui-check: webui-check:
name: WebUI Checks name: WebUI Checks
runs-on: ubuntu-latest runs-on: ubuntu-latest
continue-on-error: true
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
@ -42,6 +43,7 @@ jobs:
ref: ${{ github.event.inputs.sha || github.event.pull_request.head.sha || github.sha || github.head_ref || github.ref_name }} ref: ${{ github.event.inputs.sha || github.event.pull_request.head.sha || github.sha || github.head_ref || github.ref_name }}
- name: Setup Node.js - name: Setup Node.js
id: setup
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: "22" node-version: "22"
@ -49,45 +51,49 @@ jobs:
cache-dependency-path: "tools/server/webui/package-lock.json" cache-dependency-path: "tools/server/webui/package-lock.json"
- name: Run type checking - name: Run type checking
if: ${{ steps.setup.conclusion == 'success' }}
run: npm run check run: npm run check
continue-on-error: true
working-directory: tools/server/webui working-directory: tools/server/webui
- name: Run linting - name: Run linting
if: ${{ steps.setup.conclusion == 'success' }}
run: npm run lint run: npm run lint
continue-on-error: true
working-directory: tools/server/webui working-directory: tools/server/webui
- name: Build application - name: Build application
if: ${{ steps.setup.conclusion == 'success' }}
run: npm run build run: npm run build
working-directory: tools/server/webui working-directory: tools/server/webui
- name: Install Playwright browsers - name: Install Playwright browsers
id: playwright
if: ${{ steps.setup.conclusion == 'success' }}
run: npx playwright install --with-deps run: npx playwright install --with-deps
working-directory: tools/server/webui working-directory: tools/server/webui
- name: Build Storybook - name: Build Storybook
if: ${{ steps.playwright.conclusion == 'success' }}
run: npm run build-storybook run: npm run build-storybook
working-directory: tools/server/webui working-directory: tools/server/webui
- name: Run Client tests - name: Run Client tests
if: ${{ steps.playwright.conclusion == 'success' }}
run: npm run test:client run: npm run test:client
continue-on-error: true
working-directory: tools/server/webui working-directory: tools/server/webui
- name: Run Unit tests - name: Run Unit tests
if: ${{ steps.playwright.conclusion == 'success' }}
run: npm run test:unit run: npm run test:unit
continue-on-error: true
working-directory: tools/server/webui working-directory: tools/server/webui
- name: Run UI tests - name: Run UI tests
if: ${{ steps.playwright.conclusion == 'success' }}
run: npm run test:ui -- --testTimeout=60000 run: npm run test:ui -- --testTimeout=60000
continue-on-error: true
working-directory: tools/server/webui working-directory: tools/server/webui
- name: Run E2E tests - name: Run E2E tests
if: ${{ steps.playwright.conclusion == 'success' }}
run: npm run test:e2e run: npm run test:e2e
continue-on-error: true
working-directory: tools/server/webui working-directory: tools/server/webui
server-build: server-build: