Skip to content

ci: add ability to run additional test tags against PRs #7

ci: add ability to run additional test tags against PRs

ci: add ability to run additional test tags against PRs #7

Workflow file for this run

name: "Nightly: E2E Tests"
on:
schedule:
- cron: "0 4 * * 1-5" # Run at 4 AM UTC on weekdays
pull_request: # temporary
branches:
- main
workflow_dispatch:
inputs:
run_e2e_linux:
description: "Run E2E Linux Tests"
required: false
default: true
type: boolean
run_e2e_windows:
description: "Run E2E Windows Tests"
required: false
default: true
type: boolean
run_e2e_browser:
description: "Run E2E Browser 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: test
if: ${{ inputs.run_e2e_linux == true || inputs.run_e2e_linux == null }}
uses: ./.github/workflows/e2e-linux.yml
with:
grep: ""
project: "e2e-electron"
display_name: "e2e-electron"
secrets: inherit
e2e-windows:
name: 'test'
if: ${{ inputs.run_e2e_windows == true || inputs.run_e2e_windows == null }}
uses: ./.github/workflows/e2e-windows.yml
with:
grep: "@win"
project: "e2e-electron"
# display_name: "e2e-windows"
secrets: inherit
e2e-browser:
name: 'test'
if: ${{ inputs.run_e2e_browser == true || inputs.run_e2e_browser == null }}
uses: ./.github/workflows/e2e-linux.yml
with:
grep: ""
project: "e2e-browser"
display_name: "e2e-browser"
secrets: inherit
slack-notify:
needs: [e2e-electron, e2e-windows, e2e-browser]
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 }}