Themes 2013 #5313
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Stylelint PR Diffs | |
on: | |
pull_request: | |
# synchronize commit(s) pushed to the pull request | |
types: [synchronize, opened] | |
branches-ignore: | |
- "lokalise*" | |
jobs: | |
stylelint_pr_diffs: | |
name: Stylelint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Rep | |
uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: .nvmrc | |
registry-url: "https://npm.pkg.github.com" | |
- name: Cache Node Modules | |
id: cache | |
uses: actions/cache@v3 | |
with: | |
path: node_modules | |
key: node-modules-${{ hashFiles('package-lock.json') }} | |
- name: Clean install (CI) dependencies if lockfile (above) changed | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: npm ci | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: stylelint | |
uses: reviewdog/action-stylelint@v1 | |
with: | |
github_token: ${{ secrets.github_token }} | |
fail_on_error: true | |
reporter: github-pr-review | |
filter_mode: "diff_context" | |
stylelint_config: ".stylelintrc.json" | |
stylelint_input: "**/*.scss" |