mirror of
https://github.com/redmine/redmine.git
synced 2026-04-02 18:49:34 +02:00
Patch by Katsuya HIDAKA (user:hidakatsuya). git-svn-id: https://svn.redmine.org/redmine/branches/5.1-stable@23537 e93f8b46-1217-0410-a6f0-8f06a7374b81
40 lines
744 B
YAML
40 lines
744 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 "public/stylesheets/**/*.css"
|