-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (54 loc) · 1.52 KB
/
ci.yml
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
43
44
45
46
47
48
49
50
51
52
53
54
name: Continuous Integration
on: [push]
jobs:
tests:
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
operating-system: [ubuntu-20.04]
php-versions: ["7.4"]
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Repository lampy
uses: actions/checkout@v2
with:
submodules: recursive
repository: koromerzhin/lampy
path: lampy
- name: Cache npm packages
id: npm-cache
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: |
apps/bin
apps/vendor
key: ${{ runner.os }}-composer-${{ hashFiles('**/apps/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Install npm dependencies
if: steps.npm-cache.outputs.cache-hit != 'true'
run: make node_modules
- name: 'SET BDD'
run: make bddset
- name: 'Launch Lampy'
run: make lampy
- name: 'Image pull'
run: make docker image-pull
- name: 'Build containers'
run: make docker deploy
- name: 'sleep'
run: make sleep 60
- name: 'docker ls'
run: make docker ls