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
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:
@@ -26,6 +26,15 @@ jobs:
|
||||
run: |
|
||||
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
|
||||
run: |
|
||||
ruff check duty_teller tests
|
||||
@@ -39,12 +48,3 @@ jobs:
|
||||
- name: Security check with Bandit
|
||||
run: |
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user