feat: add test step to CI/CD pipelines and define placeholder test script in package.json

This commit is contained in:
vickytechkey 2026-08-07 18:07:19 +05:30
parent fb0e2791b4
commit a97b4aa06c
4 changed files with 16 additions and 2 deletions

View file

@ -12,6 +12,11 @@ steps:
commands:
- npm run lint
- name: test
image: node:20-alpine
commands:
- npm run test
- name: build
image: node:20-alpine
commands:

View file

@ -1,6 +1,4 @@
when:
- branch: beta
event: push
- event: deployment
environment: beta
@ -10,6 +8,11 @@ steps:
commands:
- npm ci
- name: test
image: node:20-alpine
commands:
- npm run test
- name: build
image: node:20-alpine
commands:

View file

@ -8,6 +8,11 @@ steps:
commands:
- npm ci
- name: test
image: node:20-alpine
commands:
- npm run test
- name: build
image: node:20-alpine
commands:

View file

@ -7,6 +7,7 @@
"dev": "vite",
"build": "tsc -b && vite build",
"lint": "oxlint",
"test": "echo 'No tests specified' && exit 0",
"preview": "vite preview"
},
"dependencies": {