Skip to content

Target tests

Target tests #21

Workflow file for this run

name: Target tests
on:
workflow_dispatch:
jobs:
target_test:
# This will create multiple jobs, one for each target defined in the matrix
strategy:
matrix:
# nrf9151dk not available yyet
# device: [thingy91x, nrf9151dk]
device: [thingy91x]
runs-on: ${{ matrix.device }}
# Just naming it clearly.
name: Target Test - ${{ matrix.device }}
container:
image: ghcr.io/hello-nrfcloud/firmware:docker-v1.0.3
options: --privileged
volumes:
- /dev:/dev:rw
- /run/udev:/run/udev
steps:
- name: Display Runner Serial Number
# The serial number is set by a pre-job script in .env file on the local actions-runner directory
run: |
echo "Inside Container - Runner Serial Number: $RUNNER_SERIAL_NUMBER"
nrfutil device list
nrfutil device reset --serial-number $RUNNER_SERIAL_NUMBER
echo "Sleeping for 60 seconds emulating a test run"
sleep 60