feat: add test step to CI/CD pipelines and define placeholder test script in package.json
This commit is contained in:
parent
fb0e2791b4
commit
a97b4aa06c
4 changed files with 16 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
"dev": "vite",
|
||||
"build": "tsc -b && vite build",
|
||||
"lint": "oxlint",
|
||||
"test": "echo 'No tests specified' && exit 0",
|
||||
"preview": "vite preview"
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
|
|||
Loading…
Reference in a new issue