Skip to content

Commit 2d8f6bb

Browse files
authored
Create php.yml
1 parent 0407fcb commit 2d8f6bb

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/php.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: PHP Composer
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v1
12+
13+
- name: Validate composer.json and composer.lock
14+
run: composer validate
15+
16+
- name: Install dependencies
17+
run: composer install --prefer-dist --no-progress --no-suggest
18+
19+
# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
20+
# Docs: https://getcomposer.org/doc/articles/scripts.md
21+
22+
# - name: Run test suite
23+
# run: composer run-script test
24+
25+
- name: PHP Lint
26+
uses: michaelw90/[email protected]

0 commit comments

Comments
 (0)