This repository was archived by the owner on Mar 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +47
-0
lines changed
Expand file tree Collapse file tree 3 files changed +47
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Check & fix styling
2+
3+ on : [push]
4+
5+ jobs :
6+ style :
7+ runs-on : ubuntu-latest
8+
9+ steps :
10+ - name : Checkout code
11+ uses : actions/checkout@v1
12+
13+ - name : Fix style
14+ uses : docker://oskarstark/php-cs-fixer-ga
15+ with :
16+ args : --config=.php_cs.dist.php --allow-risky=yes
17+
18+ - name : Extract branch name
19+ shell : bash
20+ run : echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
21+ id : extract_branch
22+
23+ - name : Commit changes
24+ uses : stefanzweifel/git-auto-commit-action@v2.3.0
25+ with :
26+ commit_message : Fix styling
27+ branch : ${{ steps.extract_branch.outputs.branch }}
28+ env :
29+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1+ name : tests
2+
3+ on : [push]
4+
5+ jobs :
6+ build-test :
7+ runs-on : ubuntu-latest
8+
9+ steps :
10+ - uses : actions/checkout@v2
11+ - uses : php-actions/composer@v5 # or alternative dependency management
12+ - uses : php-actions/phpunit@v2
Original file line number Diff line number Diff line change 1+ .idea
2+ build
3+ composer.lock
4+ vendor
5+ .phpunit.result.cache
6+ .php-cs-fixer.cache
You can’t perform that action at this time.
0 commit comments