GithubHelp home page GithubHelp logo

actions-hub / stylelint Goto Github PK

View Code? Open in Web Editor NEW
21.0 21.0 8.0 16 KB

GitHub Action that runs stylelint

Home Page: https://github.com/marketplace/actions/stylelinter

License: MIT License

Dockerfile 18.11% Shell 81.89%
action github-ac stylelint stylelint-action styles

stylelint's People

Contributors

bobbravo2 avatar exelban avatar gep13 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

stylelint's Issues

incompatible node version

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?

Changed files check

Do you have a possibility to check only changed CSS files, not all CSS files from the project?

Release a new version with fixes

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

Failing on repo with node 12

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.

Cannot find style files in my project.

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

Error: No files matching the pattern "*.css" were found.

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

Stylelints latest update is failing due to node version.

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.