mirror of
https://github.com/stonith404/pingvin-share.git
synced 2025-01-15 01:14:27 -05:00
fix: system test github action
This commit is contained in:
parent
c27c3dae9c
commit
a2c9755756
2 changed files with 6 additions and 6 deletions
9
.github/workflows/backend-system-tests.yml
vendored
9
.github/workflows/backend-system-tests.yml
vendored
|
@ -6,16 +6,17 @@ on:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
integration-tests:
|
system-tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: node:18-alpine
|
container: node:18
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
|
||||||
path: backend
|
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
|
working-directory: ./backend
|
||||||
run: npm install
|
run: npm install
|
||||||
- name: Create .env file
|
- name: Create .env file
|
||||||
|
working-directory: ./backend
|
||||||
run: mv .env.example .env
|
run: mv .env.example .env
|
||||||
- name: Run Server and Test with Newman
|
- name: Run Server and Test with Newman
|
||||||
|
working-directory: ./backend
|
||||||
run: npm run test:system
|
run: npm run test:system
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
"prod": "npx prisma migrate deploy && dotenv node dist/main",
|
"prod": "npx prisma migrate deploy && dotenv node dist/main",
|
||||||
"lint": "eslint 'src/**/*.ts'",
|
"lint": "eslint 'src/**/*.ts'",
|
||||||
"format": "prettier --write 'src/**/*.ts'",
|
"format": "prettier --write 'src/**/*.ts'",
|
||||||
"test:system": "npx prisma migrate reset -f && pm2 start 'nest start' && sleep 5 && newman run ./test/system/newman-system-tests.json ; pm2 delete 0"
|
"test:system": "npx prisma migrate reset -f && nest start & sleep 10 && newman run ./test/system/newman-system-tests.json"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nestjs/common": "^9.1.2",
|
"@nestjs/common": "^9.1.2",
|
||||||
|
@ -52,7 +52,6 @@
|
||||||
"eslint-config-prettier": "^8.3.0",
|
"eslint-config-prettier": "^8.3.0",
|
||||||
"eslint-plugin-prettier": "^4.0.0",
|
"eslint-plugin-prettier": "^4.0.0",
|
||||||
"newman": "^5.3.2",
|
"newman": "^5.3.2",
|
||||||
"pm2": "^5.2.2",
|
|
||||||
"prettier": "^2.7.1",
|
"prettier": "^2.7.1",
|
||||||
"prisma": "^4.4.0",
|
"prisma": "^4.4.0",
|
||||||
"source-map-support": "^0.5.21",
|
"source-map-support": "^0.5.21",
|
||||||
|
|
Loading…
Add table
Reference in a new issue