Skip to content

Commit 212d7fc

Browse files
Setup GitHub action to run tests
1 parent 0e7061d commit 212d7fc

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/php.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: PHP Composer
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v2
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+
- name: Run test suite
20+
run: vendor/bin/phpunit
21+
22+
# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
23+
# Docs: https://getcomposer.org/doc/articles/scripts.md
24+
25+
# - name: Run test suite
26+
# run: composer run-script test

0 commit comments

Comments
 (0)