File tree Expand file tree Collapse file tree 1 file changed +21
-2
lines changed Expand file tree Collapse file tree 1 file changed +21
-2
lines changed Original file line number Diff line number Diff line change 7
7
branches : [ master ]
8
8
9
9
jobs :
10
- test :
11
- runs-on : self-hosted
10
+ phpspec :
11
+ runs-on : ubuntu-latest
12
12
steps :
13
13
- uses : actions/checkout@v2
14
14
- name : Validate composer.json and composer.lock
26
26
run : composer install --prefer-dist --no-progress --no-suggest
27
27
- name : Run PHPSpec test suite
28
28
run : composer run-script phpspec
29
+ phpunit :
30
+ runs-on : ubuntu-latest
31
+ steps :
32
+ - uses : actions/checkout@v2
33
+ - name : Validate composer.json and composer.lock
34
+ run : composer validate
35
+ - name : Cache Composer packages
36
+ id : composer-cache
37
+ uses : actions/cache@v2
38
+ with :
39
+ path : vendor
40
+ key : ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
41
+ restore-keys : |
42
+ ${{ runner.os }}-php-
43
+ - name : Install dependencies
44
+ if : steps.composer-cache.outputs.cache-hit != 'true'
45
+ run : composer install --prefer-dist --no-progress --no-suggest
46
+ - name : Run PHPUnit test suite
47
+ run : composer run-script phpunit
You can’t perform that action at this time.
0 commit comments