forked from COS-301/graduates
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (50 loc) · 1.58 KB
/
index.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
---
name: CI Tests
on:
pull_request:
branches: [ main, develop, release/** ]
#manual github action trigger with choices to run individual tests
workflow_dispatch:
inputs:
testchoice:
type: choice
description: 'Test Type'
required: true
options:
- full
- lint
- build
- unit
- e2e
- all
#jobs in the workflow with passed in parameters
jobs:
test-affected-lint:
if: ${{ github.event.inputs.testchoice == 'lint' || github.event.inputs.testchoice == 'full' || github.event.inputs.testchoice == ''}}
uses: ./.github/workflows/nxtest.yml
with:
test: 'affected'
testtype: 'lint'
test-affected-build:
uses: ./.github/workflows/nxtest.yml
if: ${{ github.event.inputs.testchoice == 'build' || github.event.inputs.testchoice == 'full' || github.event.inputs.testchoice == ''}}
with:
test: 'affected'
testtype: 'build'
test-affected-unit:
uses: ./.github/workflows/nxtest.yml
if: ${{ github.event.inputs.testchoice == 'unit' || github.event.inputs.testchoice == 'full'|| github.event.inputs.testchoice == ''}}
with:
test: 'affected'
testtype: 'unit'
test-affected-e2e:
uses: ./.github/workflows/nxtest.yml
if: ${{ github.event.inputs.testchoice == 'e2e' || github.event.inputs.testchoice == 'full'|| github.event.inputs.testchoice == ''}}
with:
test: 'affected'
testtype: 'e2e'
test-all:
uses: ./.github/workflows/nxtest.yml
if: ${{ github.event.inputs.testchoice == 'all'}}
with:
test: 'all'