feat[ci]: move the shared workflows to config-ci repository

This commit is contained in:
Krzysztof Sikorski 2024-05-15 23:24:45 +02:00
parent 8797d7fb28
commit 9d14491d87
Signed by: krzysztof-sikorski
GPG key ID: 4EB564BD08FE8476
3 changed files with 3 additions and 55 deletions

View file

@ -1,13 +0,0 @@
name: 'lint-composer-json-file'
on:
workflow_call:
permissions:
contents: 'read'
jobs:
main:
name: 'lint-composer-json-file'
runs-on: 'ubuntu-latest'
steps:
- uses: 'actions/checkout@v4'
- name: 'Execute validation command'
run: 'composer validate -vvv --strict --no-check-version'

View file

@ -1,13 +1,9 @@
name: 'lint-editorconfig'
on:
workflow_call:
push:
pull_request:
permissions:
contents: 'read'
jobs:
main:
name: 'lint-editorconfig'
runs-on: 'ubuntu-latest'
steps:
- uses: 'actions/checkout@v4'
- name: 'Execute `editorconfig-checker` tool'
uses: 'docker://mstruebing/editorconfig-checker:v3.0.1'
uses: 'quintolin/config-ci/.github/workflows/lint-editorconfig.yaml@main'

View file

@ -1,35 +0,0 @@
name: 'lint-php-coding-style'
on:
workflow_call:
permissions:
contents: 'read'
jobs:
main:
name: 'lint-php-coding-style'
runs-on: 'ubuntu-latest'
steps:
- uses: 'actions/checkout@v4'
- name: 'Setup PHP'
uses: 'shivammathur/setup-php@v2'
with:
php-version: '8.3'
tools: 'friendsofphp/php-cs-fixer:3.54'
coverage: 'none'
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
- name: 'Get composer cache directory'
id: 'composer-cache'
run: 'echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT'
- name: 'Cache dependencies'
uses: 'actions/cache@v4'
with:
path: '${{ steps.composer-cache.outputs.dir }}'
key: >
${{ runner.os }}-composer-${{ hashFiles('./composer.json') }}
restore-keys: '${{ runner.os }}-composer-'
- name: 'Disable "notify-on-install" feature'
run: 'composer config notify-on-install false'
- name: 'Install dependencies'
run: 'composer install --prefer-dist'
- name: 'Execute `php-cs-fixer` tool'
run: 'php-cs-fixer check -vvv --show-progress=dots'