-
Notifications
You must be signed in to change notification settings - Fork 7
85 lines (79 loc) · 2.72 KB
/
run-qit-all.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: Run QIT for all extensions
# **What it does**: Runs a suite of tests for all Grow extensions.
# **Why we have it**: To be able to run tests for all extensions at once. For example when we want to compatibility test a new version of the platform (WP/WC).
on:
workflow_dispatch:
inputs:
# Basic params.
version:
description: 'Version to be tested'
required: true
type: choice
options:
- latest
- dev
wait:
description: 'Should wait for results'
default: false
type: boolean
# Configure which tests to run.
test-activation:
description: 'Should activation be tested?'
required: true
default: true
type: boolean
test-security:
description: 'Should security be tested?'
required: true
default: true
type: boolean
test-phpstan:
description: 'Should phpstan be tested?'
required: true
default: true
type: boolean
test-api:
description: 'Should API be tested?'
required: true
default: true
type: boolean
test-e2e:
description: 'Should E2E be tested? (takes a lot of time)'
required: true
default: false
type: boolean
# Advanced customization.
ignore-fail:
description: Should pass even if any awaited test fails.
required: false
default: false
type: boolean
options:
description: 'Additional options for `qit` command, like `--optional_features=hpos`.'
required: false
jobs:
qit-tests:
name: Run QIT Tests
runs-on: ubuntu-latest
strategy:
# Allow to test extensions even if one of them fails.
fail-fast: false
matrix:
# List of extensions to be tested.
extension: [automatewoo, automatewoo-birthdays, automatewoo-referrals, google-listings-and-ads, woocommerce-google-analytics-integration]
steps:
- name: Run QIT
uses: woocommerce/grow/run-qit-extension@actions-v1
with:
qit-partner-user: ${{ secrets.QIT_PARTNER_USER }}
qit-partner-secret: ${{ secrets.QIT_PARTNER_SECRET }}
version: ${{ inputs.version }}
wait: ${{ inputs.wait }}
test-activation: ${{ inputs.test-activation }}
test-security: ${{ inputs.test-security }}
test-phpstan: ${{ inputs.test-phpstan }}
test-api: ${{ inputs.test-api }}
test-e2e: ${{ inputs.test-e2e }}
extension: ${{ matrix.extension }}
ignore-fail: ${{ inputs.ignore-fail }}
options: ${{ inputs.options }}