-
Notifications
You must be signed in to change notification settings - Fork 92
46 lines (41 loc) · 1.2 KB
/
test-pull-request.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
name: "Test: PR"
on:
workflow_dispatch:
pull_request:
branches:
- main
- 'prerelease/**'
pull_request_target:
types:
- edited # Run only for PR body edits
jobs:
pr-tags:
if: github.event_name == 'pull_request' || github.event_name == 'pull_request_target' && github.event.action == 'edited'
runs-on: ubuntu-latest
outputs:
tags: ${{ steps.pr-tags.outputs.tags }}
steps:
- uses: actions/checkout@v4
- name: Parse Tags from PR Body
id: pr-tags
run: bash scripts/pr-tags-parse.sh "${{ github.event_path }}"
e2e-electron:
if: github.event_name == 'pull_request'
name: e2e
uses: ./.github/workflows/test-e2e-linux.yml
needs: pr-tags
with:
grep: ${{ needs.pr-tags.outputs.tags }}
display_name: "electron (linux)"
currents_tags: "pull-request,electron/linux,${{ needs.pr-tags.outputs.tags }}"
secrets: inherit
unit-tests:
if: github.event_name == 'pull_request'
name: test
uses: ./.github/workflows/test-unit.yml
secrets: inherit
integration-tests:
if: github.event_name == 'pull_request'
name: test
uses: ./.github/workflows/test-integration.yml
secrets: inherit