Skip to content

Merge pull request #8 from MockBukkit/chore/update-deps #9

Merge pull request #8 from MockBukkit/chore/update-deps

Merge pull request #8 from MockBukkit/chore/update-deps #9

Workflow file for this run

name: Lint
permissions: read-all
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
pull-requests: write
checks: write
strategy:
matrix:
node-version: [22]
steps:
- uses: actions/checkout@v2
- name: Get PNPM version from package.json
id: pnpm-version
shell: bash
run: echo "pnpm_version=$(node -p "require('./package.json').engines.pnpm")" >> "$GITHUB_OUTPUT"
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: ${{ steps.pnpm-version.outputs.pnpm_version }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Gather lint results
run: pnpm run lint:report
continue-on-error: true
- name: Upload lint results
uses: ataylorme/eslint-annotate-action@v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
report-json: "eslint_report.json"