Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgenmk committed Aug 26, 2024
1 parent 101b401 commit 1ac23c1
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/on_target.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@ name: Target tests
on:
workflow_call:
workflow_dispatch:
inputs:
build:
required: true
type: boolean
description: Build the firmware before running tests
runid:
required: false
type: number
description: The run ID of the build job to download artifacts from

schedule:
- cron: "0 0 * * *"
push:
Expand All @@ -11,14 +21,15 @@ on:

jobs:
build:
if: ${{ github.event.inputs.build == true }}
uses: ./.github/workflows/build.yml
secrets: inherit
with:
build_bl_update: true

test:
name: Test
needs: build
# needs: build
runs-on: self-hosted
environment: production
container:
Expand All @@ -39,6 +50,8 @@ jobs:
with:
name: firmware
path: thingy91x-oob/tests/on_target/artifacts
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Set version
shell: bash
Expand Down

0 comments on commit 1ac23c1

Please sign in to comment.