feat: slack bot #435
Workflow file for this run
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: Lint | |
| on: | |
| pull_request: | |
| jobs: | |
| file-ref-check: | |
| name: file-ref-check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: 'recursive' | |
| - name: Install Task | |
| uses: arduino/setup-task@v2 | |
| with: | |
| version: 3.x | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Check file references in source docs | |
| run: task check:files | |
| prettier: | |
| name: prettier | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20.11.1' | |
| - name: Install Task | |
| uses: arduino/setup-task@v2 | |
| with: | |
| version: 3.x | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Run format check | |
| run: task fmt:check | |
| continue-on-error: true | |
| id: fmt-check | |
| - name: Run formatter and show diff if check failed | |
| if: steps.fmt-check.outcome == 'failure' | |
| run: | | |
| task fmt | |
| git diff | |
| - name: Exit with error if format check failed | |
| if: steps.fmt-check.outcome == 'failure' | |
| run: exit 1 |