Skip to content

Instantly share code, notes, and snippets.

@dsandstrom
Created July 4, 2021 23:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dsandstrom/d5b7f05b011c14eba4c76f4ef1579e74 to your computer and use it in GitHub Desktop.
Save dsandstrom/d5b7f05b011c14eba4c76f4ef1579e74 to your computer and use it in GitHub Desktop.
Stylelint Github Workflow Action
# .github/workflows/stylelint.yml
# Checkout code, install npm/yarn, install js packages, run stylelint
# Set up for rails and stylelint config: stylelint.config.js
name: "Stylelint"
on: [push, pull_request]
jobs:
stylelint:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup
uses: actions/setup-node@v2
with:
node-version: '14'
cache: 'yarn'
- name: Install Yarn
run: |
yarn install
- name: Lint
run: |
yarn stylelint app/assets/stylesheets/**/*.scss --config ./stylelint.config.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment