Skip to content

Commit fb283f4

Browse files
author
Daniel Schischkin
committed
Merge remote-tracking branch 'origin/master'
2 parents 7ebebfc + e952509 commit fb283f4

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/test.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Run Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- "*"
7+
pull_request:
8+
branches: [ master ]
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Validate composer.json and composer.lock
16+
run: composer validate
17+
- name: Cache Composer packages
18+
id: composer-cache
19+
uses: actions/cache@v2
20+
with:
21+
path: vendor
22+
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
23+
restore-keys: |
24+
${{ runner.os }}-php-
25+
- name: Install dependencies
26+
if: steps.composer-cache.outputs.cache-hit != 'true'
27+
run: composer install --no-progress --no-suggest
28+
- name: Run unit tests
29+
run: vendor/bin/codecept run unit

0 commit comments

Comments
 (0)