From e9ed03e4c6a296cb85c08fccd06766709fcc7693 Mon Sep 17 00:00:00 2001 From: krisbitney Date: Mon, 14 Aug 2023 15:27:38 -0500 Subject: [PATCH] added local ganache testnet to kotlin CI --- .github/workflows/kt-cd.yaml | 4 ++-- .github/workflows/kt-ci.yaml | 21 +++++++++++++++++++++ ethereum-wallet.code-workspace | 4 ++++ 3 files changed, 27 insertions(+), 2 deletions(-) diff --git a/.github/workflows/kt-cd.yaml b/.github/workflows/kt-cd.yaml index d820da6..7aac7c8 100644 --- a/.github/workflows/kt-cd.yaml +++ b/.github/workflows/kt-cd.yaml @@ -20,8 +20,8 @@ jobs: - name: Checkout uses: actions/checkout@v2 - - name: Build and test - run: ./gradlew build + - name: Build + run: ./gradlew assemble working-directory: ./implementations/kt - name: Publish diff --git a/.github/workflows/kt-ci.yaml b/.github/workflows/kt-ci.yaml index 6aea654..cfa06e3 100644 --- a/.github/workflows/kt-ci.yaml +++ b/.github/workflows/kt-ci.yaml @@ -17,6 +17,27 @@ jobs: - name: Checkout uses: actions/checkout@v2 + - name: Read .nvmrc + run: echo ::set-output name=NVMRC::$(cat .nvmrc) + id: nvm + + - name: Setup Node.js + uses: actions/setup-node@master + with: + node-version: '${{ steps.nvm.outputs.NVMRC }}' + + - name: Install dependencies + run: yarn install --nonInteractive --frozen-lockfile --prefer-offline + working-directory: ./implementations/kt + + - name: Start Ganache + run: yarn polywrap infra up --modules=eth-ens-ipfs + working-directory: ./implementations/kt + - name: Build and test run: ./gradlew build working-directory: ./implementations/kt + + - name: Stop Ganache + run: yarn polywrap infra down --modules=eth-ens-ipfs + working-directory: ./implementations/kt diff --git a/ethereum-wallet.code-workspace b/ethereum-wallet.code-workspace index 7558b08..c943bf9 100644 --- a/ethereum-wallet.code-workspace +++ b/ethereum-wallet.code-workspace @@ -16,6 +16,10 @@ "name": "javascript-plugin", "path": "implementations/js" }, + { + "name": "kotlin-plugin", + "path": "implementations/kt" + }, ], "settings": { "files.exclude": {