-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (46 loc) · 1.78 KB
/
integration-test.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
name: Run Pimcore Integration Tests
on:
workflow_dispatch:
inputs:
test_branch:
description: 'Used branch of k6 tests'
required: false
type: string
schedule:
- cron: '0 3 * * 1,3,5'
jobs:
run-integration-test:
runs-on: Platform-Version-Integration-Tests
steps:
- name: "Checkout platform version"
uses: actions/checkout@v4
with:
path: './platform-version'
- name: "Checkout K6 Tests"
uses: actions/checkout@v4
with:
repository: "pimcore/saas-k6"
ref: ${{ inputs.test_branch || github.ref_name }}
path: "./platform-version-working-dir/saas-k6"
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- name: Setup environment
working-directory: "./platform-version-working-dir"
run: |
chmod 755 ../platform-version/.github/scripts/01-setup-environment.sh
../platform-version/.github/scripts/01-setup-environment.sh ${{ secrets.ENTERPRISE_REPOSITORY_TOKEN }}
- name: Install Pimcore
working-directory: "./platform-version-working-dir/test-project"
run: |
chmod 755 ../../platform-version/.github/scripts/02-install-pimcore.sh
../../platform-version/.github/scripts/02-install-pimcore.sh
- name: Run Tests
working-directory: "./platform-version-working-dir"
run: |
chmod 755 ../platform-version/.github/scripts/03-run-tests.sh
../platform-version/.github/scripts/03-run-tests.sh
- name: Shutdown
if: always()
working-directory: "./platform-version-working-dir/test-project"
run: |
chmod 755 ../../platform-version/.github/scripts/04-shutdown.sh
../../platform-version/.github/scripts/04-shutdown.sh