-
Notifications
You must be signed in to change notification settings - Fork 27
44 lines (40 loc) · 1.48 KB
/
test-integration.yml
File metadata and controls
44 lines (40 loc) · 1.48 KB
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
name: test-integration
on:
push:
pull_request:
# run at 6 hour UTC
schedule:
- cron: "0 6 * * *"
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
matrix:
# php82 is ready to run alongside the 72, but is not enabled now as the code is not 82 compatible yet
php: [ php72 ]
env:
PROD_PHP: "${{matrix.php}}"
steps:
- name: Checkout
uses: actions/checkout@master
- name: Build Docker environmnent
run: |
cd docker && ./docker-setup.sh
- name: Run tests
run: |
cd docker && ./docker-runtests.sh
- name: Show log on failure
if: failure()
run: |
docker inspect eb-engine-1
compose exec -T engine ps aux
cd docker && docker compose exec -T engine cat /var/www/html/app/logs/ci/ci.log
- name: Send notification on production build nightly build failure
uses: sonots/slack-notice-action@v3
with:
status: ${{ job.status }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
if: ${{ failure() && github.event_name == 'schedule' && matrix.php == env.PROD_PHP }}