forked from PrestaShop/PrestaShop
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (38 loc) · 1.18 KB
/
cron_nightly_tests_reports.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
# This workflow aim to run all UI tests on active branches
# and upload the report on Google cloud platform storage
name: Nightly tests (Report)
on:
schedule:
- cron: '0 5 * * *'
workflow_dispatch:
jobs:
# Add pushed reports to GCP on nightly
push-nightly-reports:
name: Push reports to nightly.prestashop-project.org
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 1
matrix:
include:
- branch: 1.7.8.x
database: mysql
- branch: 8.0.x
database: mysql
- branch: 8.1.x
database: mysql
- branch: 8.2.x
database: mysql
- branch: 9.0.x
database: mysql
- branch: 9.0.x
database: mariadb
- branch: develop
database: mysql
- branch: develop
database: mariadb
steps:
- name: Push reports
run: |
REPORT_NAME="$(date +%Y-%m-%d)-${{ matrix.branch }}-${{matrix.database}}"
curl -v "https://api-nightly.prestashop-project.org/hook/reports/import?token=${{ secrets.NIGHTLY_TOKEN }}&filename=${REPORT_NAME}.json&database=${{matrix.database}}"