mirror of
https://github.com/redmine/redmine.git
synced 2026-04-03 02:59:33 +02:00
Stylelint updates:
* update package version * add action to run the checks * use npx to run the checks (#30069). git-svn-id: https://svn.redmine.org/redmine/trunk@23284 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
18
.github/workflows/linters.yml
vendored
18
.github/workflows/linters.yml
vendored
@@ -19,3 +19,21 @@ jobs:
|
||||
|
||||
- name: Lint code for consistent style
|
||||
run: bundle exec rubocop --parallel
|
||||
|
||||
stylelint:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: '20'
|
||||
|
||||
- name: Install dependencies
|
||||
run: yarn install
|
||||
|
||||
- name: Lint CSS and SCSS files
|
||||
run: npx stylelint "app/assets/stylesheets/**/*.css"
|
||||
Reference in New Issue
Block a user