diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..0770697 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,24 @@ +name: Lint + +on: + push: + pull_request: + +jobs: + oxlint: + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 22 + - uses: actions/cache@v4 + id: node-modules + with: + path: node_modules + key: node-modules-${{ runner.os }}-node22-${{ hashFiles('package-lock.json') }} + - if: steps.node-modules.outputs.cache-hit != 'true' + run: npm ci + - run: npm run lint