Use matchers instead of custom actions

This commit is contained in:
Bill Thornton 2020-11-30 10:30:45 -05:00
parent 4c0ecba84a
commit e79e9e5f92

View file

@ -32,10 +32,7 @@ jobs:
SKIP_PREPARE: true SKIP_PREPARE: true
- name: Run eslint - name: Run eslint
uses: reviewdog/action-eslint@v1 run: yarn lint
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
eslint_flags: 'src/'
run-stylelint-css: run-stylelint-css:
name: Run stylelint (css) name: Run stylelint (css)
@ -50,6 +47,9 @@ jobs:
with: with:
node-version: 12 node-version: 12
- name: Set up stylelint matcher
uses: xt0rted/stylelint-problem-matcher@v1
- name: Cache dependencies - name: Cache dependencies
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
@ -62,10 +62,7 @@ jobs:
SKIP_PREPARE: true SKIP_PREPARE: true
- name: Run stylelint - name: Run stylelint
uses: reviewdog/action-stylelint@v1 run: yarn stylelint:css
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
stylelint_input: 'src/**/*.css'
run-stylelint-scss: run-stylelint-scss:
name: Run stylelint (scss) name: Run stylelint (scss)
@ -80,6 +77,9 @@ jobs:
with: with:
node-version: 12 node-version: 12
- name: Set up stylelint matcher
uses: xt0rted/stylelint-problem-matcher@v1
- name: Cache dependencies - name: Cache dependencies
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
@ -92,8 +92,4 @@ jobs:
SKIP_PREPARE: true SKIP_PREPARE: true
- name: Run stylelint - name: Run stylelint
uses: reviewdog/action-stylelint@v1 run: yarn stylelint:scss
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
stylelint_config: '.stylelintrc.scss.json'
stylelint_input: 'src/**/*.scss'