Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Changed verification workflow #74

Merged
merged 3 commits into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Backend

Expand All @@ -9,7 +7,7 @@ on:
- main

jobs:
build:
verify:
runs-on: ubuntu-latest

steps:
Expand All @@ -26,5 +24,5 @@ jobs:
- name: Install dependencies
run: cd backend && npm install

- name: Run tests
run: cd backend && npm test
- name: Run verify
run: cd backend && npm run verify
6 changes: 2 additions & 4 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Frontend

Expand All @@ -9,7 +7,7 @@ on:
- main

jobs:
build:
verify:
runs-on: ubuntu-latest

steps:
Expand All @@ -27,4 +25,4 @@ jobs:
run: cd frontend && npm install

- name: Run tests
run: cd frontend && npm test
run: cd frontend && npm run test
8 changes: 6 additions & 2 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@
"private": true,
"license": "UNLICENSED",
"scripts": {
"verify": "npm run build && npm run check && npm run test:cov && npm run test:e2e",
"build": "nest build",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"start": "nest start",
"start:dev": "nest start --watch",
"start:debug": "nest start --debug --watch",
"start:prod": "node dist/main",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"check:format": "prettier --check \"src/**/*.ts\" \"test/**/*.ts\"",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"check:lint": "eslint \"{src,apps,libs,test}/**/*.ts\"",
"check": "npm run check:format && npm run check:lint",
"test": "jest",
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
Expand All @@ -36,7 +40,7 @@
"@types/supertest": "^6.0.0",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"eslint": "^8.42.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"jest": "^29.5.0",
Expand Down
Loading