Skip to content

Commit 478a66a

Browse files
authored
Update php.yml (#68)
Update php.yml
2 parents 6e8b7b4 + 3490deb commit 478a66a

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/php.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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+
- uses: docker://phpearth/php:7.4-cli
13+
14+
- name: Validate composer.json and composer.lock
15+
run: composer validate
16+
17+
- name: Install dependencies
18+
run: composer install --prefer-dist --no-progress --no-suggest
19+
20+
# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
21+
# Docs: https://getcomposer.org/doc/articles/scripts.md
22+
23+
- name: Run test suite
24+
run: ./vendor/bin/phpunit

0 commit comments

Comments
 (0)