Skip to content

Check the stylelint exit code before proceeding #111

Check the stylelint exit code before proceeding

Check the stylelint exit code before proceeding #111

Workflow file for this run

name: reviewdog
on: [pull_request]
jobs:
stylelint:
name: runner / stylelint
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node_version: [14, 16, 18]
steps:
- uses: actions/checkout@v4
- name: setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node_version }}
- name: stylelint-github-pr-check
uses: ./
with:
github_token: ${{ secrets.github_token }}
stylelint_config: 'stylelint-config-recommended'
stylelint_ignore: '/testdata-subproject/'
- name: stylelint-github-check
uses: ./
with:
github_token: ${{ secrets.github_token }}
reporter: github-check
level: warning
stylelint_ignore: '/testdata-subproject/'
- name: stylelint-github-pr-review
uses: ./
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
stylelint_ignore: '/testdata-subproject/'
- name: stylelint-github-pr-check-subproject
uses: ./
with:
github_token: ${{ secrets.github_token }}
stylelint_config: 'stylelint-config-recommended'
workdir: ./testdata-subproject
- name: stylelint-github-check-subproject
uses: ./
with:
github_token: ${{ secrets.github_token }}
reporter: github-check
level: warning
workdir: ./testdata-subproject
- name: stylelint-github-pr-review-subproject
uses: ./
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
workdir: ./testdata-subproject