Skip to content

Commit

Permalink
check: prettier check
Browse files Browse the repository at this point in the history
  • Loading branch information
kevkevinpal committed Oct 12, 2023
1 parent 5120733 commit 09626c8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,23 @@ jobs:
run: go test -v ./...

build:
name: build Job
name: Build Job
runs-on:
- ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install modules
run: yarn --cwd ./frontend/app install
- name: Eslint
- name: Build
run: CI=false yarn --cwd ./frontend/app run build

prettier:
name: Prettier Job
runs-on:
- ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install modules
run: yarn --cwd ./frontend/app install
- name: Prettier
run: CI=false yarn --cwd ./frontend/app run prettier:check
3 changes: 2 additions & 1 deletion frontend/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"lint": "eslint src --max-warnings 67 --ext .ts --ext .tsx --ignore-pattern *.spec.tsx --ignore-pattern *.spec.ts",
"lint:fix": "npm run lint -- --fix",
"prettier": "npx prettier --config .prettierrc.json -w ./src",
"prettier:check": "npx prettier --config .prettierrc.json --check ./src",
"prepare": "cd ../.. && husky install frontend/app/.husky"
},
"resolutions": {
Expand Down Expand Up @@ -193,4 +194,4 @@
"node_modules/(?!@ngrx|(?!deck.gl)|ng-dynamic)"
]
}
}
}

0 comments on commit 09626c8

Please sign in to comment.