Skip to content

Commit 0e4c22f

Browse files
committed
Added PHP validation via GH actions
1 parent 1884e27 commit 0e4c22f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/php.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Test PHP
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
build:
7+
name: Test
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v1
12+
13+
- name: Setup Composer Access
14+
run: composer config -g github-oauth.github.com ${{ secrets.GH_ACCESS_TOKEN }}
15+
16+
- name: Install dependencies
17+
run: composer install --prefer-dist --no-progress --no-suggest
18+
19+
- name: Validate code against PSR2
20+
run: ./vendor/bin/phpcs ./ --extensions=php --standard=PSR2 --ignore=vendor/

0 commit comments

Comments
 (0)