-
Notifications
You must be signed in to change notification settings - Fork 93
102 lines (93 loc) · 2.88 KB
/
test-full-suite.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
name: "Test: Full Suite"
on:
schedule:
- cron: "0 4 * * 1-5" # Run at 4 AM UTC on weekdays
pull_request: # temporary marie to remove
branches:
- main
workflow_dispatch:
inputs:
run_e2e_linux:
description: "Run E2E Electron (Linux) Tests"
required: false
default: true
type: boolean
run_e2e_windows:
description: "Run E2E Electron (Windows) Tests"
required: false
default: true
type: boolean
run_e2e_browser:
description: "Run E2E Browser (Linux) Tests"
required: false
default: true
type: boolean
run_unit_tests:
description: "Run Unit Tests"
required: false
default: true
type: boolean
run_integration_tests:
description: "Run Integration Tests"
required: false
default: true
type: boolean
notify_on:
description: "When to send a notification to Slack"
required: false
default: "failure"
type: choice
options:
- failure
- always
jobs:
e2e-electron:
name: e2e
if: ${{ inputs.run_e2e_linux == true || inputs.run_e2e_linux == null }}
uses: ./.github/workflows/test-e2e-linux.yml
with:
grep: "@dummy-test"
project: "e2e-electron"
display_name: "electron (linux)"
currents_tags: "@nightly,@electron/linux"
secrets: inherit
e2e-windows:
name: e2e
if: ${{ inputs.run_e2e_windows == true || inputs.run_e2e_windows == null }}
uses: ./.github/workflows/test-e2e-windows.yml
with:
grep: "@dummy-test"
display_name: "electron (win)"
currents_tags: "@nightly,@electron/win"
secrets: inherit
e2e-browser:
name: e2e
if: ${{ inputs.run_e2e_browser == true || inputs.run_e2e_browser == null }}
uses: ./.github/workflows/test-e2e-linux.yml
with:
grep: "@dummy-test"
project: "e2e-browser"
display_name: "browser (linux)"
currents_tags: "@nightly,@browser/linux"
secrets: inherit
unit-tests:
name: test
if: ${{ inputs.run_unit_tests == true || inputs.run_unit_tests == null }}
uses: ./.github/workflows/test-unit.yml
secrets: inherit
integration-tests:
name: test
if: ${{ inputs.run_integration_tests == true || inputs.run_integration_tests == null }}
uses: ./.github/workflows/test-integration.yml
secrets: inherit
slack-notify:
needs: [e2e-electron, e2e-windows, e2e-browser, unit-tests, integration-tests]
runs-on: ubuntu-latest
if: always()
steps:
- name: Notify Slack
uses: midleman/slack-workflow-status@master
with:
repo_token: ${{ secrets.POSITRON_GITHUB_PAT }}
slack_webhook_url: ${{ secrets.SLACK_MARIE_WEBHOOK_URL }}
notify_on: ${{ inputs.notify_on }}