diff with master #2
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 | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| branches: | |
| - master | |
| tags: | |
| - v* | |
| pull_request: | |
| branches: | |
| - '**' | |
| jobs: | |
| lint: | |
| name: Run prettier and linter | |
| 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: '18.x' | |
| - name: Install dependencies | |
| run: npm i | |
| - name: Install oxlint native binding | |
| run: npm i @oxlint/binding-linux-x64-gnu | |
| - name: Check prettier | |
| run: npm run prettier:check | |
| - name: Check formatting | |
| run: npm run lint:check | |
| - name: Check if TypeScript still compiles | |
| run: npm run check-ts |