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
  1. Add LAGER_SECRET_TOKEN as a repository secret

Image of repository page with arrow pointing to "Settings".

On your repository page, click "Settings"

Image of settings page with arrow pointing to "Secrets".

On the Settings page, click "Secrets"

Image of secrets page with arrow pointing to "New secret".

On the Secrets page, click "New secret"

Image of secrets page with arrow pointing to "New secret".

For the name, enter LAGER_SECRET_TOKEN. The value can be retrieved from your account page. Within a workflow you can use ${{ secrets.LAGER_SECRET_TOKEN }} to access the secret

Image of secrets page after adding a new secret

Click "Add secret" and your new secret should be listed on the secrets page