-
Notifications
You must be signed in to change notification settings - Fork 93
108 lines (99 loc) · 3.32 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
102
103
104
105
106
107
name: "Test: Full Suite"
on:
schedule:
- cron: "0 4 * * 1-5" # Run at 4 AM UTC on weekdays
workflow_dispatch:
inputs:
run_e2e_linux:
description: "E2E Tests / Electron (Linux)"
required: false
default: true
type: boolean
run_e2e_windows:
description: "E2E Tests / Electron (Windows)"
required: false
default: true
type: boolean
run_e2e_browser:
description: "E2E Tests / Chromium (Linux)"
required: false
default: true
type: boolean
run_unit_tests:
description: "Unit Tests"
required: false
default: true
type: boolean
run_integration_tests:
description: "Integration Tests"
required: false
default: true
type: boolean
notify_on:
description: "Slack notification on:"
required: false
default: "failure"
type: choice
options:
- failure
- always
- never
jobs:
run-e2e-linux:
runs-on: ubuntu-latest
steps:
- run: exit 1
# e2e-electron:
# name: e2e
# if: ${{ github.event_name == 'schedule' || inputs.run_e2e_linux }}
# uses: ./.github/workflows/test-e2e-linux.yml
# secrets: inherit
# with:
# grep: ""
# project: "e2e-electron"
# display_name: "electron (linux)"
# currents_tags: ${{ github.event_name == 'schedule' && 'nightly,electron/linux' || 'electron/linux' }}
# report_testrail: true
# e2e-windows:
# name: e2e
# if: ${{ github.event_name == 'schedule' || inputs.run_e2e_windows }}
# uses: ./.github/workflows/test-e2e-windows.yml
# secrets: inherit
# with:
# grep: ""
# display_name: "electron (win)"
# currents_tags: ${{ github.event_name == 'schedule' && 'nightly,electron/win' || 'electron/win' }}
# report_testrail: true
# e2e-browser:
# name: e2e
# if: ${{ github.event_name == 'schedule' || inputs.run_e2e_browser }}
# uses: ./.github/workflows/test-e2e-linux.yml
# secrets: inherit
# with:
# grep: ""
# project: "e2e-browser"
# display_name: "browser (linux)"
# currents_tags: ${{ github.event_name == 'schedule' && 'nightly,browser/linux' || 'browser/linux' }}
# report_testrail: true
# unit-tests:
# name: test
# if: ${{ github.event_name == 'schedule' || inputs.run_unit_tests }}
# uses: ./.github/workflows/test-unit.yml
# secrets: inherit
# integration-tests:
# name: test
# if: ${{ github.event_name == 'schedule' || inputs.run_integration_tests }}
# uses: ./.github/workflows/test-integration.yml
# secrets: inherit
slack-notify:
needs: run-e2e-linux
# needs: [e2e-electron, e2e-windows, e2e-browser, unit-tests, integration-tests]
runs-on: ubuntu-latest
steps:
- run: echo ${{ github.event_name == 'schedule' && 'always' || inputs.notify_on || 'failure' }}
- 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: ${{ github.event_name == 'schedule' && 'always' || inputs.notify_on || 'failure' }}