Test: Full Suite #27
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | |
trigger: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Echo Input Details | |
run: | | |
echo "Workflow Inputs:" | |
echo "- E2E Electron (Linux): ${{ inputs.run_e2e_linux }}" | |
echo "- E2E Electron (Windows): ${{ inputs.run_e2e_windows }}" | |
echo "- E2E Chromium (Linux): ${{ inputs.run_e2e_browser }}" | |
echo "- Unit Tests: ${{ inputs.run_unit_tests }}" | |
echo "- Integration Tests: ${{ inputs.run_integration_tests }}" | |
echo "- Slack Notification On: ${{ inputs.notify_on }}" | |
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: [e2e-electron, e2e-windows, e2e-browser, unit-tests, integration-tests] | |
runs-on: ubuntu-latest | |
if: ${{ inputs.notify_on != 'never' }} | |
steps: | |
- name: Notify Slack | |
uses: midleman/slack-workflow-status@master | |
with: | |
repo_token: ${{ secrets.POSITRON_GITHUB_PAT }} | |
slack_webhook_url: ${{ secrets.SLACK_TEST_RESULTS_WEBHOOK_URL }} | |
notify_on: ${{ inputs.notify_on }} | |