Skip to content

Commit

Permalink
Fix CI zemu_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
0xPxt committed Nov 21, 2024
1 parent bd75db5 commit 89434eb
Showing 1 changed file with 28 additions and 11 deletions.
39 changes: 28 additions & 11 deletions .github/workflows/build_and_functional_tests.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
name: Build and run functional tests using ragger through reusable workflow

# This workflow will build the app and then run functional tests using the Ragger framework upon Speculos emulation.
# It calls a reusable workflow developed by Ledger's internal developer team to build the application and upload the
# resulting binaries.
# It then calls another reusable workflow to run the Ragger tests on the compiled application binary.
#
# While this workflow is optional, having functional testing on your application is mandatory and this workflow and
# tooling environment is meant to be easy to use and adapt after forking your application
name: Build and run zemu tests

on:
workflow_dispatch:
Expand All @@ -19,6 +11,7 @@ on:
branches:
- develop
- master
- dev

jobs:
build_application:
Expand All @@ -30,7 +23,31 @@ jobs:

zemu_tests:
name: Run zemu tests
needs: build_application
needs: [build_application]
runs-on: ubuntu-latest
steps:
- run: cd tests_zemu && yarn test
- uses: actions/checkout@v4

- name: List available artifacts
run: |
echo "Available artifacts from build job:"
gh api \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts \
| jq -r '.artifacts[] | "- " + .name'
env:
GITHUB_TOKEN: ${{ github.token }}

- name: Download all artifacts
uses: actions/download-artifact@v3
with:
path: temp_artifacts

- name: Debug - Check download location
run: |
pwd
echo "Current directory contents:"
ls -la
echo "Looking for temp_artifacts:"
find . -name "temp_artifacts" -type d

0 comments on commit 89434eb

Please sign in to comment.