diff --git a/.github/workflows/test-e2e.yaml b/.github/workflows/test-e2e.yaml index c70e0f62c..89b80e1f2 100644 --- a/.github/workflows/test-e2e.yaml +++ b/.github/workflows/test-e2e.yaml @@ -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 }}