1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-04 05:25:01 +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
commit 5c50f12686
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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: |