fix: update document follow as frappe and report changes #157
This file contains hidden or 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: Pre-commit | |
| on: | |
| pull_request: | |
| jobs: | |
| pre-commit: | |
| name: Pre-commit | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Set up Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Install frontend dependencies | |
| run: cd frontend && yarn install | |
| - name: Run pre-commit on PR diff | |
| uses: pre-commit/action@v3.0.1 | |
| with: | |
| extra_args: >- | |
| --from-ref ${{ github.event.pull_request.base.sha }} | |
| --to-ref ${{ github.event.pull_request.head.sha }} |