update prettier/linter setup and workflows #759
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Prettier Check | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
pull_request: | |
branches: | |
- main | |
- develop | |
- "feature/**" | |
jobs: | |
run-prettier-check: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.17.1 | |
cache: "npm" | |
cache-dependency-path: ./angular-client/package-lock.json | |
- name: Install modules | |
working-directory: ./angular-client | |
run: | | |
ls -la | |
npm ci | |
- name: Run prettier check | |
working-directory: ./angular-client | |
run: npm run prettier-check |