We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6fa8e9 commit 06d4686Copy full SHA for 06d4686
.github/workflows/phpunit.yml
@@ -0,0 +1,34 @@
1
+name: PHP Composer
2
+
3
+on:
4
+ push:
5
+ branches: [ master ]
6
+ pull_request:
7
8
9
+jobs:
10
+ build:
11
12
+ runs-on: ubuntu-latest
13
14
+ steps:
15
+ - uses: actions/checkout@v2
16
17
+ - name: Validate composer.json and composer.lock
18
+ run: composer validate
19
20
+ - name: Cache Composer packages
21
+ id: composer-cache
22
+ uses: actions/cache@v2
23
+ with:
24
+ path: vendor
25
+ key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
26
+ restore-keys: |
27
+ ${{ runner.os }}-php-
28
29
+ - name: Install dependencies
30
+ if: steps.composer-cache.outputs.cache-hit != 'true'
31
+ run: composer install --prefer-dist --no-progress --no-suggest
32
33
+ - name: Run test suite
34
+ run: vendor/bin/phpunit
0 commit comments