feat[ci]: move the shared workflows to config-ci
repository
This commit is contained in:
parent
8797d7fb28
commit
9d14491d87
3 changed files with 3 additions and 55 deletions
13
.github/workflows/lint-composer-json-file.yaml
vendored
13
.github/workflows/lint-composer-json-file.yaml
vendored
|
@ -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'
|
10
.github/workflows/lint-editorconfig.yaml
vendored
10
.github/workflows/lint-editorconfig.yaml
vendored
|
@ -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'
|
||||
|
|
35
.github/workflows/lint-php-coding-style.yaml
vendored
35
.github/workflows/lint-php-coding-style.yaml
vendored
|
@ -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'
|
Loading…
Reference in a new issue