jellyfin-web/.github/workflows/lint.yml

82 lines
1.7 KiB
YAML
Raw Normal View History

2020-11-24 13:22:00 -07:00
name: Lint
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
run-eslint:
name: Run eslint
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install Node.js dependencies
run: yarn
env:
SKIP_PREPARE: true
- name: Run eslint
uses: reviewdog/action-eslint@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
eslint_flags: 'src/'
2020-11-30 07:59:30 -07:00
run-stylelint-css:
name: Run stylelint (css)
2020-11-24 13:22:00 -07:00
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install Node.js dependencies
run: yarn
env:
SKIP_PREPARE: true
- name: Run stylelint
uses: reviewdog/action-stylelint@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
stylelint_input: 'src/**/*.css'
2020-11-30 07:59:30 -07:00
run-stylelint-scss:
name: Run stylelint (scss)
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install Node.js dependencies
run: yarn
env:
SKIP_PREPARE: true
- name: Run stylelint
uses: reviewdog/action-stylelint@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
stylelint_config: '.stylelintrc.scss.json'
stylelint_input: 'src/**/*.scss'