Add pre commit hook #1868
Workflow file for this run
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: Check web Code - Prettier | |
on: | |
pull_request: | |
paths: | |
- "agenta-web/**" | |
jobs: | |
prettier: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install Prettier | |
run: npm install [email protected] --no-save | |
working-directory: agenta-web | |
- name: Run Prettier | |
run: | | |
npx prettier -v | |
npx prettier --check . | |
working-directory: agenta-web |