diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index 7f7397a..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 @@ -9,7 +7,7 @@ on: - main jobs: - build: + verify: runs-on: ubuntu-latest steps: @@ -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 diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index 65909fb..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 @@ -9,7 +7,7 @@ on: - main jobs: - build: + verify: runs-on: ubuntu-latest steps: @@ -27,4 +25,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",