refined step control
This commit is contained in:
parent
acecbf2a0d
commit
4e213dd2d8
|
|
@ -34,6 +34,7 @@ jobs:
|
|||
webui-check:
|
||||
name: WebUI Checks
|
||||
runs-on: ubuntu-latest
|
||||
continue-on-error: true
|
||||
steps:
|
||||
- name: Checkout code
|
||||
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 }}
|
||||
|
||||
- name: Setup Node.js
|
||||
id: setup
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "22"
|
||||
|
|
@ -49,45 +51,49 @@ jobs:
|
|||
cache-dependency-path: "tools/server/webui/package-lock.json"
|
||||
|
||||
- name: Run type checking
|
||||
if: ${{ steps.setup.conclusion == 'success' }}
|
||||
run: npm run check
|
||||
continue-on-error: true
|
||||
working-directory: tools/server/webui
|
||||
|
||||
- name: Run linting
|
||||
if: ${{ steps.setup.conclusion == 'success' }}
|
||||
run: npm run lint
|
||||
continue-on-error: true
|
||||
working-directory: tools/server/webui
|
||||
|
||||
- name: Build application
|
||||
if: ${{ steps.setup.conclusion == 'success' }}
|
||||
run: npm run build
|
||||
working-directory: tools/server/webui
|
||||
|
||||
- name: Install Playwright browsers
|
||||
id: playwright
|
||||
if: ${{ steps.setup.conclusion == 'success' }}
|
||||
run: npx playwright install --with-deps
|
||||
working-directory: tools/server/webui
|
||||
|
||||
- name: Build Storybook
|
||||
if: ${{ steps.playwright.conclusion == 'success' }}
|
||||
run: npm run build-storybook
|
||||
working-directory: tools/server/webui
|
||||
|
||||
- name: Run Client tests
|
||||
if: ${{ steps.playwright.conclusion == 'success' }}
|
||||
run: npm run test:client
|
||||
continue-on-error: true
|
||||
working-directory: tools/server/webui
|
||||
|
||||
- name: Run Unit tests
|
||||
if: ${{ steps.playwright.conclusion == 'success' }}
|
||||
run: npm run test:unit
|
||||
continue-on-error: true
|
||||
working-directory: tools/server/webui
|
||||
|
||||
- name: Run UI tests
|
||||
if: ${{ steps.playwright.conclusion == 'success' }}
|
||||
run: npm run test:ui -- --testTimeout=60000
|
||||
continue-on-error: true
|
||||
working-directory: tools/server/webui
|
||||
|
||||
- name: Run E2E tests
|
||||
if: ${{ steps.playwright.conclusion == 'success' }}
|
||||
run: npm run test:e2e
|
||||
continue-on-error: true
|
||||
working-directory: tools/server/webui
|
||||
|
||||
server-build:
|
||||
|
|
|
|||
Loading…
Reference in New Issue