chore: update CI workflow to include Node.js setup and Next.js build process
All checks were successful
CI / lint-and-test (push) Successful in 1m5s

- Added steps to set up Node.js version 20 in the CI workflow.
- Included commands to build and test the Next.js web application, ensuring integration with the existing Python-based project.
This commit is contained in:
2026-03-03 18:43:45 +03:00
parent 54f85a8f14
commit 378daad503

View File

@@ -26,6 +26,15 @@ jobs:
run: | run: |
pip install ruff bandit pip install ruff bandit
- name: Set up Node.js
uses: https://gitea.com/actions/setup-node@v4
with:
node-version: "20"
- name: Webapp (Next.js) build and test
run: |
cd webapp-next && npm ci && npm test && npm run build
- name: Lint with Ruff - name: Lint with Ruff
run: | run: |
ruff check duty_teller tests ruff check duty_teller tests
@@ -39,12 +48,3 @@ jobs:
- name: Security check with Bandit - name: Security check with Bandit
run: | run: |
bandit -r duty_teller -ll bandit -r duty_teller -ll
- name: Set up Node.js
uses: https://gitea.com/actions/setup-node@v4
with:
node-version: "20"
- name: Webapp (Next.js) build and test
run: |
cd webapp-next && npm ci && npm test && npm run build