1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-10-17 17:01:01 +00:00
redmine/.github/workflows/linters.yml
Marius Balteanu 1ba92ba3e0 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
2024-11-16 09:53:42 +00:00

39 lines
747 B
YAML

name: Lint
on:
push:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
bundler-cache: true
- 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"