Skip to content

Commit

Permalink
Draft changes just for review
Browse files Browse the repository at this point in the history
Signed-off-by: Vipul Gupta (@vipulgupta2048) <[email protected]>
  • Loading branch information
vipulgupta2048 committed Apr 22, 2024
1 parent a8432c5 commit d9f66b9
Showing 1 changed file with 24 additions and 13 deletions.
37 changes: 24 additions & 13 deletions .github/workflows/yocto-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,14 @@ jobs:
#TODO: select correct api key (balena machine or prod)
## SELECT WHICH API KEY TO USE BASED ON ENV
- name: Select Balena API key for Prod
if: inputs.environment == 'production'
run: echo "BALENACLOUD_API_KEY=${{ secrets.BALENA_API_KEY }}" >> $GITHUB_ENV

- name: Select Balena API key for staging
if: inputs.environment == 'staging'
run: echo "BALENACLOUD_API_KEY=${{ secrets.BALENAMACHINE_API_KEY }}" >> $GITHUB_ENV

- name : Prepare Leviathan inputs
run: |
Expand All @@ -377,19 +385,22 @@ jobs:
# TODO: add test step/steps here??
# Set the envs for the step
# SUITES: ${{ env.LEVIATHAN_SUITES }}
# WORKSPACE: ${{ env.LEVIATHAN_WORKSPACE }}
# REPORTS: ${{ env.LEVIATHAN_REPORTS }}
# - name: leviathan...
# uses: leviathan-action.....
# env:
# SUITES: ${{ env.LEVIATHAN_SUITES }}
# matrix: | - pointless to split at the moment, as if they're not in a seperate job, you won't be able to retry anyway
# os
# hup
# cloud
# sb-os
# sb-hup
- name: BalenaOS Leviathan Tests
uses: balena-os/leviathan@master
matrix:
include:
- DEVICE_TYPE: genericx86-64-ext
WORKER_TYPE: qemu
ENVIRONMENT: balena-cloud
# TEST_SUITE_NAME: e2e
env:
SUITES: ${{ env.LEVIATHAN_SUITES }}
WORKSPACE: ${{ env.LEVIATHAN_WORKSPACE }}
REPORTS: ${{ env.LEVIATHAN_REPORTS }}
BALENACLOUD_ORG: ${{ env.BALENACLOUD_ORG }}
BALENACLOUD_API_KEY: ${{ env.BALENACLOUD_API_KEY }}
inputs:


## IF inputs.sign-image === true
## Do another leviathan with QEMU_SECUREBOOT = 1??
Expand Down

0 comments on commit d9f66b9

Please sign in to comment.