Skip to content

Commit

Permalink
Merge pull request #20 from RimidalU/feat/backend
Browse files Browse the repository at this point in the history
Implement check-pr workflow
  • Loading branch information
RimidalU authored May 3, 2024
2 parents 2bb0334 + 4be7527 commit d3a224b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/check-pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Pull requests check

on:
pull_request:

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Check out the repository
- uses: actions/checkout@v4

- name: Change version node
- uses: actions/setup-node@v3
with:
node-version: 20.x.x
cache: npm
- run: npm ci
- run: npm run format:verify
- run: npm run lint:verify
- run: npm run lint:types
- run: npm run test
3 changes: 3 additions & 0 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@
"scripts": {
"build": "nest build",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"format:verify": "prettier --list-different \"src/**/*.ts\" \"test/**/*.ts\"",
"start": "NODE_ENV=prod nest start",
"start:dev": "NODE_ENV=dev nest start --watch",
"start:debug": "nest start --debug --watch",
"start:prod": "node dist/main",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"lint:verify": "eslint \"{src,apps,libs,test}/**/*.ts\"",
"lint:types": "tsc --noEmit",
"test": "jest",
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
Expand Down

0 comments on commit d3a224b

Please sign in to comment.