You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
stylelinter
v1.1.0
GitHub Action that runs stylelint.
To use stylelint in your workflow just add this step:
- name: stylelint
uses: actions-hub/stylelint@master
By default, action will try to find an existing configuration file in the project.
If the configuration file will not found, it will be created with the next configuration:
{
"extends": "stylelint-config-standard",
"rules": {
"indentation": 2
}
}
If you want to specify which file or types must be validated.
You need to pass the pattern as PATTERN
variable.
By default, it will try to find *.css
.
Indentation can be set by environment variable INDENT_SPACES
.
By default space indend is 2.
- uses: actions-hub/stylelint@master
env:
INDENT_SPACES: 4
name: Test
on: [push]
jobs:
linters:
name: stylelint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-hub/stylelint@master
name: Test
on: [push]
jobs:
linters:
name: stylelint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-hub/stylelint@master
env:
PATTERN: "*.scss"
INDENT_SPACES: 4