Skip to content

Commit

Permalink
Merge pull request #83 from adobecom/MWPW-159021-eslint-errors
Browse files Browse the repository at this point in the history
MWPW-159021: Add lint github action
  • Loading branch information
zagi25 authored Oct 7, 2024
2 parents c031524 + 45b48c7 commit 6342a7c
Showing 1 changed file with 69 additions and 0 deletions.
69 changes: 69 additions & 0 deletions .github/workflows/run-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Lint
on:
pull_request:
types: [opened, synchronize, reopened, edited]
branches:
- stage
- main
jobs:
eslint:
name: runner / eslint
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]

permissions:
contents: write
pull-requests: write

steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 1

- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm install

- uses: reviewdog/action-eslint@v1
with:
filter_mode: file
fail_on_error: true

stylelint:
name: runner / stylelint
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]

permissions:
contents: write
pull-requests: write

steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 1

- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm install

- uses: reviewdog/action-stylelint@v1
with:
filter_mode: file
fail_on_error: true

0 comments on commit 6342a7c

Please sign in to comment.