[Extension] Revisit recommendation #3870
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 PR Format | |
on: | |
pull_request: | |
branches: [ main ] | |
jobs: | |
check-format: | |
if: ${{ ! contains(github.event.pull_request.labels.*.name, 'PR/NO TEST') }} | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
- run: npm install | |
- run: npm run lint | |
- run: npm run lintjs | |
- run: npm run lintcss | |
- run: npm run linthtml | |
- run: sudo apt-get install clang-format-8 | |
- run: sudo apt-get install jq | |
- run: bash infra/format | |
- name: Upload format.patch | |
uses: actions/upload-artifact@v2 | |
if: ${{ failure() }} | |
with: | |
name: format.patch | |
path: format.patch | |
retention-days: 1 |