From 847609b96a734206637cece2bcdfa7d28fbc058a Mon Sep 17 00:00:00 2001 From: juan-langa Date: Wed, 16 Oct 2024 12:57:26 +0200 Subject: [PATCH] Daily improvements - 16 October --- .../0_1_regressionWithRealWallet.yml | 44 +++++++++++++++++++ package.json | 1 + 2 files changed, 45 insertions(+) create mode 100644 .github/workflows/0_1_regressionWithRealWallet.yml diff --git a/.github/workflows/0_1_regressionWithRealWallet.yml b/.github/workflows/0_1_regressionWithRealWallet.yml new file mode 100644 index 00000000..f52fd6ac --- /dev/null +++ b/.github/workflows/0_1_regressionWithRealWallet.yml @@ -0,0 +1,44 @@ +name: 0.1. Regression - Tests ith real wallet + +on: + workflow_dispatch: + inputs: + base_url: + description: 'Environment base URL to run the tests on.' + type: string + default: 'https://staging.summer.fi' + required: true + flags_features: + description: 'Features Flags to enable / disable. For example: "flag1:true flag2:false"' + type: string + default: '' + required: false + +jobs: + with-real-wallet-tests: + name: 'Tests with real wallet' + runs-on: ubuntu-latest + container: + image: synthetixio/docker-node:18.16-ubuntu + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 18 + - name: Install dependencies + run: yarn + - name: Install playwright + run: npx playwright install && npx playwright install-deps + - name: Install xvfb + run: apt-get update -y && apt-get -y install xvfb && rm -rf /var/lib/apt/lists/* /var/cache/apt/* + - name: Run 'With real wallet' tests + run: | + BASE_URL=${{ inputs.base_url }} \ + FLAGS_FEATURES=${{ inputs.flags_features}} \ + yarn ci:with-real-wallet: + - uses: actions/upload-artifact@v4 + if: always() + with: + name: playwright-report-with-real-wallet + path: playwright-reports/with-real-wallet + retention-days: 30 diff --git a/package.json b/package.json index 56cf5cdf..3394c95b 100644 --- a/package.json +++ b/package.json @@ -80,6 +80,7 @@ "//-2b": "---------------------- CI REGRESSION TESTS -----------------------", "//-2c": "---------------------------------------------------------------", "ci:no-wallet:regression": "WORKERS='2' FULLY_PARALLEL='true' RETRIES='2' yarn no-wallet:regression", + "ci:with-real-wallet": "xvfb-run yarn with-real-wallet", "ci:with-wallet:aave:ethereum:regression": "xvfb-run yarn with-wallet:aave:ethereum:regression", "ci:with-wallet:aave:other:regression": "xvfb-run yarn with-wallet:aave:other:regression", "ci:with-wallet:aave:arbitrum:regression": "xvfb-run yarn with-wallet:aave:arbitrum:regression",