1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-01-17 06:08:19 +01:00

[ticket/16687] Add check stylesheet with stylelint to github workflow

PHPBB3-16687
This commit is contained in:
Marc Alexander 2021-01-15 22:34:41 +01:00
parent fca6ffa131
commit e5418dd054
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995
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
env:
BRANCH: ${{ github.event.pull_request.base.sha }}