To use these reusable github actions, simply create your .yml
file, in your .github/workflows
directory in your repository, and simply paste the code below:
file: .github/workflows/codeception.yml
on:
pull_request:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'psalm.xml'
push:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'psalm.xml'
name: build
jobs:
codeception:
uses: yii-tools/actions/.github/workflows/build.yml@main
with:
extensions: fileinfo, intl
os: >-
['ubuntu-latest']
php: >-
['8.1', '8.2']
file: .github/workflows/dependency-checker.yml
on:
pull_request:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'psalm.xml'
name: dependency-check
jobs:
composer-require-checker:
uses: yii-tools/actions/.github/workflows/split-tests.yml@main
with:
os: >-
['ubuntu-latest']
packages-name: >-
['html', 'model']
php: >-
['8.1', '8.2']
test-command: composer-require-checker
file: .github/workflows/phpunit.yml
on:
pull_request:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'psalm.xml'
name: build
jobs:
phpunit:
uses: yii-tools/actions/.github/workflows/split-tests.yml@main
with:
os: >-
['ubuntu-latest', 'windows-latest']
packages-name: >-
['html', 'model']
php: >-
['8.1', '8.2']
file: .github/workflows/psalm.yml
on:
pull_request:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'psalm.xml'
name: static-analysis
jobs:
psalm:
uses: yii-tools/actions/.github/workflows/split-tests.yml@main
with:
os: >-
['ubuntu-latest']
packages-name: >-
['html', 'model']
php: >-
['8.1', '8.2']
test-command: psalm
The MIT License (MIT). Please see License File for more information.