-
Notifications
You must be signed in to change notification settings - Fork 8
47 lines (46 loc) · 1.25 KB
/
test.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
name: Build and Test on Target
on:
workflow_dispatch:
inputs:
run_fota_tests:
type: boolean
required: true
default: true
run_fullmfwfota_test:
type: boolean
required: true
default: false
run_dfu_tests:
type: boolean
required: true
default: true
run_connectivity_bridge_tests:
type: boolean
required: true
default: true
schedule:
- cron: "0 0 * * *"
push:
branches:
- main
jobs:
build:
uses: ./.github/workflows/build.yml
secrets: inherit
with:
build_bl_update: true
test:
uses: ./.github/workflows/on_target.yml
needs: build
secrets: inherit
with:
artifact_fw_version: ${{ needs.build.outputs.version }}
artifact_run_id: ${{ needs.build.outputs.run_id }}
run_fota_tests: ${{ github.event.inputs.run_fota_tests }}
run_fullmfwfota_test: >-
${{
github.event_name == 'schedule' ||
(github.event_name == 'workflow_dispatch' && github.event.inputs.run_fullmfwfota_test == 'true')
}}
run_dfu_tests: ${{ github.event.inputs.run_dfu_tests }}
run_connectivity_bridge_tests: ${{ github.event.inputs.run_connectivity_bridge_tests }}