Skip to content

Commit 6ab16b0

Browse files
committed
Updated Github actions
1 parent bfc377d commit 6ab16b0

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

.github/workflows/test.yml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ on:
77
branches: [ master ]
88

99
jobs:
10-
test:
11-
runs-on: self-hosted
10+
phpspec:
11+
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v2
1414
- name: Validate composer.json and composer.lock
@@ -26,3 +26,22 @@ jobs:
2626
run: composer install --prefer-dist --no-progress --no-suggest
2727
- name: Run PHPSpec test suite
2828
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

0 commit comments

Comments
 (0)