mirror of
https://github.com/octfx/mediawiki-extensions-TemplateStylesExtender.git
synced 2024-11-28 02:00:26 +00:00
feat: Add lint jobs
This commit is contained in:
parent
b66e7c2886
commit
fccec1e4ee
38
.github/workflows/lint-check.yml
vendored
Normal file
38
.github/workflows/lint-check.yml
vendored
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
name: Lint Tests
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master, develop, feature/** ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ master ]
|
||||||
|
jobs:
|
||||||
|
lint-check:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Installing PHP
|
||||||
|
uses: shivammathur/setup-php@master
|
||||||
|
with:
|
||||||
|
php-version: '8.0'
|
||||||
|
- name: Get Composer Cache Directory 2
|
||||||
|
id: composer-cache
|
||||||
|
run: |
|
||||||
|
echo "::set-output name=dir::$(composer config cache-files-dir)"
|
||||||
|
- uses: actions/cache@v3
|
||||||
|
id: actions-cache
|
||||||
|
with:
|
||||||
|
path: ${{ steps.composer-cache.outputs.dir }}
|
||||||
|
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-composer-
|
||||||
|
- name: Cache PHP dependencies
|
||||||
|
uses: actions/cache@v3
|
||||||
|
id: vendor-cache
|
||||||
|
with:
|
||||||
|
path: vendor
|
||||||
|
key: ${{ runner.OS }}-build-${{ hashFiles('**/composer.lock') }}
|
||||||
|
- name: Composer install
|
||||||
|
if: steps.vendor-cache.outputs.cache-hit != 'true'
|
||||||
|
run: composer install --no-ansi --no-interaction --no-scripts --no-suggest --prefer-dist
|
||||||
|
- name: Run Test
|
||||||
|
run: composer run test
|
Loading…
Reference in a new issue