mirror of
https://github.com/Routstr/routstr-core.git
synced 2026-10-05 20:28:23 +00:00
ui build test
This commit is contained in:
@@ -7,7 +7,7 @@ on:
|
|||||||
branches: ["*"] # Run on PRs to all branches
|
branches: ["*"] # Run on PRs to all branches
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
backend-test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@@ -51,3 +51,29 @@ jobs:
|
|||||||
pytest.xml
|
pytest.xml
|
||||||
.coverage
|
.coverage
|
||||||
retention-days: 30
|
retention-days: 30
|
||||||
|
|
||||||
|
ui-build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: '18'
|
||||||
|
cache: 'npm'
|
||||||
|
cache-dependency-path: ui/package-lock.json
|
||||||
|
|
||||||
|
- name: Install UI dependencies
|
||||||
|
working-directory: ./ui
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
|
- name: Run UI linting
|
||||||
|
working-directory: ./ui
|
||||||
|
run: npm run lint
|
||||||
|
|
||||||
|
- name: Run UI build
|
||||||
|
working-directory: ./ui
|
||||||
|
run: npm run build
|
||||||
|
|||||||
Reference in New Issue
Block a user