From 1ba92ba3e04062b396ca32d642bac73711a8bca2 Mon Sep 17 00:00:00 2001 From: Marius Balteanu Date: Sat, 16 Nov 2024 09:53:42 +0000 Subject: 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 --- .github/workflows/linters.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to '.github') diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml index 297e28116..730a6e7f1 100644 --- a/.github/workflows/linters.yml +++ b/.github/workflows/linters.yml @@ -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" \ No newline at end of file -- cgit v1.2.3