Skip to content

Commit 4336904

Browse files
workflows: add build and test workflow
Add nightly workflow that build and tests. Signed-off-by: Giacomo Dematteis <giacomo.dematteis@nordicsemi.no>
1 parent cd253ee commit 4336904

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Build and Test
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
pytest_marker:
7+
type: string
8+
required: false
9+
default: 'not slow'
10+
11+
schedule:
12+
- cron: "0 0 * * *"
13+
push:
14+
branches:
15+
- main
16+
paths-ignore:
17+
- "docs/**"
18+
jobs:
19+
build:
20+
uses: ./.github/workflows/build.yml
21+
secrets: inherit
22+
test:
23+
permissions:
24+
contents: write
25+
uses: ./.github/workflows/target-test.yml
26+
needs: build
27+
secrets: inherit
28+
with:
29+
artifact_fw_version: ${{ needs.build.outputs.version }}
30+
artifact_run_id: ${{ needs.build.outputs.run_id }}
31+
pytest_marker: ${{ inputs.pytest_marker || (github.event_name == 'schedule' && 'no_markers_flag') || (github.event_name == 'push' && 'not slow') }}

0 commit comments

Comments
 (0)