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:
parent
fca6ffa131
commit
e5418dd054
18
.github/check-stylesheet.sh
vendored
Executable file
18
.github/check-stylesheet.sh
vendored
Executable 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"
|
4
.github/workflows/tests.yml
vendored
4
.github/workflows/tests.yml
vendored
@ -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 }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user