-
Notifications
You must be signed in to change notification settings - Fork 863
58 lines (44 loc) · 1.09 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
55
56
57
58
name: CI
on:
push:
branches: [ master, v2-dev ]
pull_request:
branches: [ master, v2-dev ]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up environment
run: |
cp .env.dev .env
- name: Start Docker environment
run: make start
- name: Wait for services to be ready
run: |
echo "Waiting for services to be ready..."
sleep 45
- name: Check environment status
run: make status
- name: Initialize project
run: make init
- name: Generate API documentation
run: make apidoc
continue-on-error: true
- name: Generate SSL certificates
run: make gen-certs
- name: Test database operations
run: |
make db-dump
make db-restore
continue-on-error: true
- name: Run code quality checks
run: make phpmd
continue-on-error: true
- name: Run tests
run: make test
continue-on-error: true
- name: Stop Docker environment
if: always()
run: make stop