Files
llamactl/.github/workflows/webui_test.yaml
Matúš Námešný 96bbfcb273 Potential fix for code scanning alert no. 1: Workflow does not contain permissions
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-07-26 23:28:59 +02:00

36 lines
626 B
YAML

name: WebUI Tests
permissions:
contents: read
on:
push:
branches: [ main ]
paths:
- "webui/**"
- ".github/workflows/webui_test.yaml"
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./webui
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
cache-dependency-path: "./webui/package-lock.json"
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm run test:run