Created
July 4, 2021 23:24
-
-
Save dsandstrom/d5b7f05b011c14eba4c76f4ef1579e74 to your computer and use it in GitHub Desktop.
Stylelint Github Workflow Action
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
# .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