mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-17 14:42:36 +00:00
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 4.1.0 to 4.4.0.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](39370e3970...49933ea528)
---
updated-dependencies:
- dependency-name: actions/setup-node
dependency-version: 4.4.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
55 lines
1.3 KiB
YAML
55 lines
1.3 KiB
YAML
name: UI Tests
|
|
|
|
run-name: Run the UI test suite
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
paths:
|
|
- 'llama_stack/ui/**'
|
|
- '.github/workflows/ui-unit-tests.yml' # This workflow
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
ui-tests:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
node-version: [22]
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
cache: 'npm'
|
|
cache-dependency-path: 'llama_stack/ui/package-lock.json'
|
|
|
|
- name: Install dependencies
|
|
working-directory: llama_stack/ui
|
|
run: npm ci
|
|
|
|
- name: Run linting
|
|
working-directory: llama_stack/ui
|
|
run: npm run lint
|
|
|
|
- name: Run format check
|
|
working-directory: llama_stack/ui
|
|
run: npm run format:check
|
|
|
|
- name: Run unit tests
|
|
working-directory: llama_stack/ui
|
|
env:
|
|
CI: true
|
|
|
|
run: npm test -- --coverage --watchAll=false --passWithNoTests
|