shaarli-plugin-clickat/.forgejo/workflows/lint.yml

28 lines
1.2 KiB
YAML
Raw Normal View History

2024-09-14 15:48:36 +02:00
---
2024-02-11 21:09:43 +01:00
name: lint
run-name: lint is launched by ${{ github.actor }}
on: [push]
jobs:
check:
runs-on: ubuntu-latest
name: lint
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
2024-09-14 11:12:21 +02:00
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Forgejo!"
2024-02-11 21:09:43 +01:00
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@v4
- name: Install linters using Composer
2024-09-14 15:48:36 +02:00
run: |
2024-02-11 21:09:43 +01:00
export COMPOSER_HOME=/tmp
echo "{}" > composer.json
composer config --no-interaction allow-plugins.bamarni/composer-bin-plugin true
composer require --dev bamarni/composer-bin-plugin
composer bin phplint require --dev overtrue/phplint
2024-09-14 15:48:36 +02:00
composer require --dev friendsofphp/php-cs-fixer==2.19.0 --with-all-dependencies
2024-02-11 21:09:43 +01:00
- name: Lint
run: vendor/bin/phplint --no-cache --no-progress --exclude=vendor --verbose
- name: PHP CS Fixer
2024-09-14 15:48:36 +02:00
run: PHP_CS_FIXER_IGNORE_ENV=yes vendor/bin/php-cs-fixer fix --dry-run --verbose --diff .
2024-02-11 21:09:43 +01:00
- run: echo "🍏 This job's status is ${{ job.status }}."