From 330e31f704a1f7a9580513031f026b6a674d5774 Mon Sep 17 00:00:00 2001 From: Darren Kelly Date: Tue, 26 Dec 2023 11:05:42 +0000 Subject: [PATCH 1/8] test docker image and download --- .github/workflows/e2e-tests.yaml | 44 +++++ .idea/workspace.xml | 318 +++++++++++++++++++++++++++++++ 2 files changed, 362 insertions(+) create mode 100644 .github/workflows/e2e-tests.yaml create mode 100644 .idea/workspace.xml diff --git a/.github/workflows/e2e-tests.yaml b/.github/workflows/e2e-tests.yaml new file mode 100644 index 000000000..fccac2475 --- /dev/null +++ b/.github/workflows/e2e-tests.yaml @@ -0,0 +1,44 @@ +name: ci + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Build and export + uses: docker/build-push-action@v5 + with: + context: . + tags: vechain/thor:{{github.sha}} + outputs: type=docker,dest=/tmp/vechain-thor.tar + + - name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: vechain-thor-image + path: /tmp/vechain-thor.tar + retention-days: 7 + + use: + runs-on: ubuntu-latest + needs: build + steps: + - name: Download artifact + uses: actions/download-artifact@v3 + with: + name: vechain-thor-image + path: /tmp + - name: Load image + run: | + docker load --input /tmp/vechain-thor.tar + docker image ls -a diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 000000000..cb42d9973 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,318 @@ + + + + + + + + + + + { + "lastFilter": { + "state": "OPEN", + "assignee": "darrenvechain" + } +} + + + + + + + + + + + + + + + + + + + + { + "associatedIndex": 7 +} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + project + + $PROJECT_DIR$/integration_tests/node_modules/mocha + $PROJECT_DIR$/integration_tests + true + bdd + + TEST + $PROJECT_DIR$/integration_tests/test/accounts.test.ts + + + + + + + + project + + $PROJECT_DIR$/integration_tests/node_modules/mocha + $PROJECT_DIR$/integration_tests + true + bdd + + SUITE + $PROJECT_DIR$/integration_tests/test/blocks.test.ts + + + + + + + project + + + $PROJECT_DIR$/integration_tests + true + bdd + --require ts-node/register + TEST + $PROJECT_DIR$/integration_tests/test/blocks.test.ts + + + + + + + + project + + $PROJECT_DIR$/integration_tests/node_modules/mocha + $PROJECT_DIR$/integration_tests + true + bdd + + SUITE + $PROJECT_DIR$/integration_tests/test/contracts.test.ts + + + + + + + project + + $PROJECT_DIR$/integration_tests/node_modules/mocha + $PROJECT_DIR$/integration_tests + true + bdd + + TEST + $PROJECT_DIR$/integration_tests/test/contracts.test.ts + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + true + + + + + + file://$PROJECT_DIR$/api/blocks/blocks.go + 121 + + + file://$PROJECT_DIR$/cmd/thor/flags.go + 62 + + + file://$PROJECT_DIR$/api/api.go + 62 + + + file://$PROJECT_DIR$/api/api.go + 61 + + + file://$PROJECT_DIR$/integration_tests/test/setup/connex.ts + 49 + + + + + + + + + + + \ No newline at end of file From c23cd6bbca47a0c0bb519e58f1cf806894ac4e3f Mon Sep 17 00:00:00 2001 From: Darren Kelly Date: Tue, 26 Dec 2023 11:06:30 +0000 Subject: [PATCH 2/8] fix github.sha --- .github/workflows/e2e-tests.yaml | 4 ++-- .idea/workspace.xml | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/e2e-tests.yaml b/.github/workflows/e2e-tests.yaml index fccac2475..0e20acf18 100644 --- a/.github/workflows/e2e-tests.yaml +++ b/.github/workflows/e2e-tests.yaml @@ -1,4 +1,4 @@ -name: ci +name: E2E Tests on: [push] @@ -19,7 +19,7 @@ jobs: uses: docker/build-push-action@v5 with: context: . - tags: vechain/thor:{{github.sha}} + tags: vechain/thor:${{ github.sha }} outputs: type=docker,dest=/tmp/vechain-thor.tar - name: Upload artifact diff --git a/.idea/workspace.xml b/.idea/workspace.xml index cb42d9973..17e9985ae 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,7 +4,10 @@