From c173788f10ed21918dce9e5a2ac5bf9686dfbad1 Mon Sep 17 00:00:00 2001 From: Benedict Weis Date: Tue, 2 Apr 2024 15:27:52 +0200 Subject: [PATCH 1/3] changed verification workflow --- .github/workflows/backend.yml | 4 ++-- .github/workflows/frontend.yml | 2 +- backend/package.json | 8 ++++++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index 7f7397a..3e7936a 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -26,5 +26,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 diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index 65909fb..2b7305c 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -27,4 +27,4 @@ jobs: run: cd frontend && npm install - name: Run tests - run: cd frontend && npm test + run: cd frontend && npm run test diff --git a/backend/package.json b/backend/package.json index 00729d3..dfaef8d 100644 --- a/backend/package.json +++ b/backend/package.json @@ -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", @@ -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", From a075e082707a1b928701b46594d556dbf3ddab00 Mon Sep 17 00:00:00 2001 From: Benedict Weis Date: Tue, 2 Apr 2024 15:30:36 +0200 Subject: [PATCH 2/3] changed naming --- .github/workflows/backend.yml | 2 +- .github/workflows/frontend.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index 3e7936a..736065a 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -9,7 +9,7 @@ on: - main jobs: - build: + verify: runs-on: ubuntu-latest steps: diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index 2b7305c..a7f3732 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -9,7 +9,7 @@ on: - main jobs: - build: + verify: runs-on: ubuntu-latest steps: From 356af2ba53d6c46c1b0887f023e5e737c7ae3506 Mon Sep 17 00:00:00 2001 From: Benedict Weis Date: Tue, 2 Apr 2024 15:35:04 +0200 Subject: [PATCH 3/3] removed unecessary comments --- .github/workflows/backend.yml | 2 -- .github/workflows/frontend.yml | 2 -- 2 files changed, 4 deletions(-) diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index 736065a..3216a2f 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -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 diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index a7f3732..ad548b9 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -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