actions-hub / stylelint Goto Github PK
View Code? Open in Web Editor NEWGitHub Action that runs stylelint
Home Page: https://github.com/marketplace/actions/stylelinter
License: MIT License
GitHub Action that runs stylelint
Home Page: https://github.com/marketplace/actions/stylelinter
License: MIT License
How do you specify multiple file types in the pattern variable?
Hello
I'm trying to use this action in my repo with these steps in ci.yml
:
steps:
- uses: actions/checkout@v1
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Install dependencies
run: yarn install
- name: stylelint
uses: actions-hub/stylelint@master
Additionally, in my package.json:
"engines": {
"node": "12.*"
}
And I receive the following error in github actions:
error [email protected]: The engine "node" is incompatible with this module. Expected version "12.*". Got "10.19.0"
error Found incompatible module.
I'm fairly new to github actions, is that an issue with this repo, or should I fix it in my own repo? We expect our code to run only on node 12, and there are no other issues anywhere else with that requirement.
I keep getting this error:
Error: No files matching the pattern "*.css" were found.
Not sure if it is related to Babel or what.
name: Stylesheet Lint
on: [push, pull_request]
jobs:
linters:
name: stylelint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-hub/stylelint@master
Similar issue to #10, #9, and #4
error [email protected]: The engine "node" is incompatible with this module. Expected version ">=16". Got "14.18.1"
Does the base image need to be updated?
My project has a .stylelintrc.json
config file, and the action does not find the config because of the .json extension. The check in line 12 should be changed to accommodate the config formats descibed on the stylelint website.
Hello! Thank you for this action, we are finding it very useful.
Would it be possible to release a new version of this with the fixes currently on the master branch? We would like to avoid targeting a branch for security reasons.
Thank you,
Louis
Do you have a possibility to check only changed CSS files, not all CSS files from the project?
Hey friend, looks like stylelint put out a new version today that requires a later version of node. We're seeing this issue.
error [email protected]: The engine "node" is incompatible with this module. Expected version "^12.20.0 || ^14.13.1 || >=16.0.0". Got "12.16.1"
I tried a number of ways to get around this, but I think the docker image being used by this image needs to upgrade it's version of node to at least 12.20.0. Should I make an issue on the base image or is here ok?
I have setup the linter in a workflow action. With the default configuration it fails because it cannot find any .css files so I changed the configuration to look for scss file sand it still fails.
Here's my jobs:
name: CI
on:
push:
branches:
- master
- feature/*
- fix/*
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Style Lint
uses: exelban/stylelint@master
with:
args: ./**/*.scss
Here's the output:
Run exelban/stylelint@master
/usr/bin/docker run --name bb8165570c4d792448e6971767005ebe8d22_5a7058 --label 04bb81 --workdir /github/workspace --rm -e INPUT_ARGS -e HOME -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/platformcraft/platformcraft":"/github/workspace" 04bb81:65570c4d792448e6971767005ebe8d22 ./**/*.scss
Error: No files matching the pattern "./**/*.scss" were found.
at globby.then.filePaths (/github/workspace/node_modules/stylelint/lib/standalone.js:210:17)
at process._tickCallback (internal/process/next_tick.js:68:7)
##[error]Docker run failed with exit code 1
Similar to the issue resolved here: #4
Stylelint had a new update today which breaks the action due to needing a higher node version.
Expected version “^12.20.0 || ^14.13.1 || >=16.0.0”. Got “12.16.1"
@exelban Is there a way to remedy this or would you have to update the base image that you are currently pulling from?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.