Skip to content

Commit

Permalink
Merge pull request #4160 from anoma/tomas/ci/test-ledger-app-3
Browse files Browse the repository at this point in the history
ci/test-ledger-app: undo previous changes and run on ubuntu image
  • Loading branch information
mergify[bot] authored Dec 11, 2024
2 parents be0e81f + 52d0ebb commit f84309b
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -654,9 +654,10 @@ jobs:

test-ledger-app:
timeout-minutes: 30
runs-on: [self-hosted, 4vcpu-8ram-ubuntu22-namada-x86]
container:
image: ghcr.io/heliaxdev/namada-ci:namada-main
runs-on: [ubuntu-latest]

env:
RUSTC_WRAPPER: ""

steps:
- name: Checkout repo
Expand All @@ -667,24 +668,25 @@ jobs:
if: ${{ github.event_name == 'pull_request_target' }}
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Configure AWS
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: ${{ env.AWS_REGION }}
role-to-assume: ${{ secrets.AWS_ROLE }}
- name: Checkout ledger-namada
run: |
echo "Using Namada Ledger App version: v${LEDGER_APP_VERSION}"
git clone 'https://github.com/heliaxdev/ledger-namada' ../ledger-namada
cd ../ledger-namada
git checkout "v$LEDGER_APP_VERSION"
git submodule update --init --recursive
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 10
make deps
- name: Install rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Generate test vectors
run: |
# The path where the Ledger app test suite will locate test vectors
TESTVEC_PATH="../ledger-namada/tests/testvectors.json"
TESTDBG_PATH="../ledger-namada/tests/testdebugs.txt"
sudo apt-get install -y protobuf-compiler
cargo run --example generate-txs -- $TESTVEC_PATH $TESTDBG_PATH
- name: Check test vectors
run: |
Expand Down

0 comments on commit f84309b

Please sign in to comment.