forked from CodelyTV/php-ddd-example
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (32 loc) · 920 Bytes
/
ci.yml
File metadata and controls
42 lines (32 loc) · 920 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: CI
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: docker-compose pull
- uses: satackey/action-docker-layer-caching@v0.0.11
continue-on-error: true
with:
key: php_ddd_example-cache-${{ secrets.CACHE_VERSION }}-{hash}
restore-keys: |
php_ddd_example-cache-${{ secrets.CACHE_VERSION }}-
- name: Install dependencies
run: make composer-install
- name: Start all the environment
run: make start
- name: Wait for the environment to get up
run: |
while ! make ping-mysql &>/dev/null; do
echo "Waiting for database connection..."
sleep 2
done
- name: Run the tests
run: make test
- name: Static analysis
run: make static-analysis