Github Actions
1. Update your workflow YAML to include a Lager step
name: Simple to flash a DUT and run tests
on: [push]
env:
LAGER_GATEWAY: helpful-horse
jobs:
lager_testrun:
runs-on: ubuntu-latest
steps:
- name: Connect to debugger
uses: docker://lagerdata/lager-cli:v0.1.41
env:
LAGER_SECRET_TOKEN: ${{ secrets.LAGER_SECRET_TOKEN }}
with:
entrypoint: /usr/local/bin/lager
args: connect --device nrf52 --force
- name: Flash and run
uses: docker://lagerdata/lager-cli:v0.1.41
env:
LAGER_SECRET_TOKEN: ${{ secrets.LAGER_SECRET_TOKEN }}
with:
entrypoint: /usr/local/bin/lager
args: testrun --serial-device /dev/ttyACM0 --hexfile _build/test-example.hex
Add
LAGER_SECRET_TOKEN
as a repository secret