1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-25 11:01:48 +02:00

Merge pull request #6123 from marc1706/ticket/16687

[ticket/16687] Add check stylesheet with stylelint to github workflow
This commit is contained in:
Marc Alexander
2021-01-16 14:16:45 +01:00
committed by GitHub
2 changed files with 22 additions and 0 deletions

18
.github/check-stylesheet.sh vendored Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/bash
#
# This file is part of the phpBB Forum Software package.
#
# @copyright (c) phpBB Limited <https://www.phpbb.com>
# @license GNU General Public License, version 2 (GPL-2.0)
#
# For full copyright and license information, please see
# the docs/CREDITS.txt file.
#
set -e
set +x
sudo npm install -g > /dev/null
npm install > /dev/null
set -x
node_modules/stylelint/bin/stylelint.js "phpBB/styles/prosilver/theme/*.css"
node_modules/stylelint/bin/stylelint.js "phpBB/adm/style/*.css"

View File

@@ -80,6 +80,10 @@ jobs:
run: |
.github/check-executable-files.sh ./
- name: Check stylesheets
run: |
.github/check-stylesheet.sh
- name: Check commit message
if: github.event_name == 'pull_request'
run: |