diff --git a/.github/workflows/checker.yaml b/.github/workflows/checker.yaml index b600f92..47e4438 100644 --- a/.github/workflows/checker.yaml +++ b/.github/workflows/checker.yaml @@ -35,3 +35,28 @@ jobs: - name: Validate PR commits with commitlint if: github.event_name == 'pull_request' run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose + + linter: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [20.x] + + steps: + - uses: actions/checkout@v3 + with: + ref: ${{ github.head_ref }} + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - name: Install dependencies + run: npm install + + - name: Run Prettier + run: npm run prettier + + - name: Run Lint + run: npm run lint