forked from lubiana/futtern
26 lines
817 B
YAML
26 lines
817 B
YAML
on: [pull_request]
|
|
jobs:
|
|
ls:
|
|
runs-on: docker
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: setup php
|
|
uses: https://github.com/shivammathur/setup-php@v2
|
|
with:
|
|
php-version: '8.4'
|
|
tools: 'composer'
|
|
- name: lint
|
|
run: composer lint
|
|
- name: test
|
|
run: composer test
|
|
- name: GIT commit and push all changed files
|
|
env:
|
|
CI_COMMIT_MESSAGE: Continuous Integration Fixes
|
|
CI_COMMIT_AUTHOR: Continuous Integration
|
|
run: |
|
|
if [[ -n "$(git status -s)" ]]; then
|
|
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
|
|
git config --global user.email "gitbot@users.noreply.php.fail"
|
|
git commit -am "${{ env.CI_COMMIT_MESSAGE }}"
|
|
git push
|
|
fi
|