-
Notifications
You must be signed in to change notification settings - Fork 1.1k
67 lines (59 loc) · 2.27 KB
/
run-test-manual.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
59
60
61
62
63
64
65
66
67
name: Run test manually
on: [pull_request]
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
initialize_cloud:
runs-on: ubuntu-22.04
outputs:
POOL_NAME: ${{ steps.pool_variables.outputs.POOL_NAME }}
POOL_INSTANCE: ${{ steps.pool_variables.outputs.POOL_INSTANCE }}
BASE_URL: ${{ steps.pool_variables.outputs.BASE_URL }}
API_URL: ${{ steps.pool_variables.outputs.API_URL }}
BACKUP_ID: ${{ steps.cloud_variables.outputs.BACKUP_ID }}
BACKUP_VER: ${{ steps.cloud_variables.outputs.BACKUP_VER }}
BACKUP_NAME: ${{ steps.cloud_variables.outputs.BACKUP_NAME }}
steps:
- name: Generate variables
id: cloud_variables
uses: ./.github/actions/prepare-tests-variables
with:
CLI_TOKEN: ${{ secrets.STAGING_TOKEN }}
BACKUP_NAMESPACE: "snapshot-automation-tests"
MODE: pull-request
- name: Prepare instances
id: pool_variables
uses: ./.github/actions/prepare-instance
with:
STRATEGY: reload
CLI_TOKEN: ${{ secrets.STAGING_TOKEN }}
BASE_URL: ${{ steps.cloud_variables.outputs.BASE_URL }}
API_URL: ${{ steps.cloud_variables.outputs.API_URL }}
POOL_NAME: ${{ steps.cloud_variables.outputs.POOL_NAME }}
POOL_INSTANCE: ${{ steps.cloud_variables.outputs.POOL_INSTANCE }}
BACKUP_ID: ${{ steps.cloud_variables.outputs.POOL_INSTANCE }}
# run-tests:
# runs-on: ubuntu-latest
# needs: initialize_cloud
# strategy:
# fail-fast: false
# matrix:
# shard: [1/2, 2/2]
# steps:
# - name: Run playwright tests
# uses: ./.github/actions/run-pw-tests
# with:
# SHARD: ${{ matrix.shard }}
# BASE_URL: ${{ needs.initialize_cloud.outputs.BASE_URL }}
# API_URL: ${{ needs.initialize_cloud.outputs.API_URL }}
# E2E_USER_NAME: ${{ secrets.CYPRESS_USER_NAME }}
# E2E_USER_PASSWORD: ${{ secrets.CYPRESS_USER_PASSWORD }}
# E2E_PERMISSIONS_USERS_PASSWORD: ${{ secrets.CYPRESS_PERMISSIONS_USERS_PASSWORD }}
# merge-reports:
# if: '!cancelled()'
# needs: run-tests
# runs-on: ubuntu-latest
# steps:
# - name: Merge playwright reports
# uses: ./.github/actions/run-pw-tests