Files
Redmine/.github/workflows/linters.yml
Marius Balteanu c0f2b0ebf9 Enable GitHub Actions for testing and linting on 5.1-stable branch (#42135).
Patch by Katsuya HIDAKA (user:hidakatsuya).

git-svn-id: https://svn.redmine.org/redmine/branches/5.1-stable@23537 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-03-10 22:33:04 +00:00

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"