.github/workflows/eslint.yml
name: Lint
# This action works with pull requests and pushes
on: [ pull_request, push ]
jobs:
eslint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
# Make sure the actual branch is checked out when running on pull requests
ref: ${{ github.head_ref }}
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install dependencies
run: npm install
- name: Run ESLint
run: npx eslint --fix --ext .vue resources/js/components