This commit is contained in:
12
.drone.yml
12
.drone.yml
@@ -21,19 +21,19 @@ steps:
|
||||
|
||||
# Build the Angular project
|
||||
- name: build
|
||||
image: node:18-alpine
|
||||
image: node:20-alpine
|
||||
commands:
|
||||
- npm run build --if-present
|
||||
|
||||
# Run unit tests (e.g. using Karma, Jest or your configured test runner)
|
||||
- name: test
|
||||
image: node:18-alpine
|
||||
commands:
|
||||
- npm test
|
||||
# - name: test
|
||||
# image: node:20-alpine
|
||||
# commands:
|
||||
# - npm test
|
||||
|
||||
# Run SonarQube code analysis
|
||||
- name: code-analysis
|
||||
image: node:18-alpine
|
||||
image: node:20-alpine
|
||||
commands:
|
||||
# Install sonar-scanner globally
|
||||
- npm install -g sonar-scanner
|
||||
|
||||
Reference in New Issue
Block a user