Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(tests): run rosetta tests in pipeline #923

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/test-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,43 @@ jobs:
name: e2e-test-results-${{ github.sha }}
path: ./junit.xml
retention-days: 14

run-rosetta-tests:
runs-on: ubuntu-latest
needs: build-docker-image
env:
THOR_IMAGE: vechain/thor:${{ github.sha }}
name: Run Rosetta Tests
steps:

- name: Checkout
uses: actions/checkout@v4
with:
repository: vechain/rosetta
# https://github.com/vechain/rosetta/pull/26/commits/3c7be7d9027e370a0de8c398061b8847ec7bce4b
# TODO: update this ref if the PR is merged
ref: 3c7be7d9027e370a0de8c398061b8847ec7bce4b

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Download artifact
uses: actions/download-artifact@v4
with:
name: vechain-thor-image-${{ github.sha }}
path: /tmp

- name: Load image
run: |
docker load --input /tmp/vechain-thor.tar
docker image ls -a

- name: Install
run: npm install

- name: Run Tests
run: npm run test
env:
THOR_VERSION: ${{ github.sha }}
Loading