Skip to content

App ci

App ci #9

name: Build and run zemu tests
on:
workflow_dispatch:
push:
branches:
- master
- main
- develop
pull_request:
branches:
- develop
- master
- dev
jobs:
build_application:
name: Build application using the reusable workflow
uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_build.yml@v1
with:
upload_app_binaries_artifact: "compiled_app_binaries"
flags: "RELEASE_BUILD=0"
zemu_tests:
name: Run zemu tests
needs: [build_application]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Download all artifacts
uses: actions/download-artifact@v3
with:
path: temp_artifacts
- name: Debug - List downloaded files
run: |
echo "Contents of temp_artifacts:"
ls -R temp_artifacts/
- name: Restructure artifacts
run: |
mkdir -p build
for device in temp_artifacts/*; do
if [ -d "$device" ]; then
device_name=$(basename "$device" | sed 's/compiled_app_binaries-//')
echo "Processing device: $device_name"
mkdir -p "build/$device_name"
cp -r "$device"/* "build/$device_name/"
fi
done
rm -rf temp_artifacts
- name: Debug - List final structure
run: |
echo "Final build directory structure:"
ls -R build/
- name: Install dependencies
run: cd tests_zemu && yarn install
- name: Run tests
run: cd tests_zemu && yarn test