diff --git a/.github/workflows/0_0_regressionAll.yml b/.github/workflows/0_0_regressionAll.yml index 3f69de63..53c34df2 100644 --- a/.github/workflows/0_0_regressionAll.yml +++ b/.github/workflows/0_0_regressionAll.yml @@ -22,74 +22,18 @@ jobs: flags_features: ${{ inputs.flags_features}} with-wallet-aave-arbitrum-tests: - name: 'With wallet - Aave - Arbitrum' - runs-on: ubuntu-latest - env: - TENDERLY_PROJECT: ${{ secrets.TENDERLY_PROJECT }} - TENDERLY_USER: ${{ secrets.TENDERLY_USER }} - TENDERLY_ACCESS_KEY: ${{ secrets.TENDERLY_ACCESS_KEY }} - container: - image: synthetixio/docker-node:18.16-ubuntu - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - 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 wallet Aave Arbitrum tests - run: | - TENDERLY_PROJECT=${{ secrets.TENDERLY_PROJECT }} \ - TENDERLY_USER=${{ secrets.TENDERLY_USER }} \ - TENDERLY_ACCESS_KEY=${{ secrets.TENDERLY_ACCESS_KEY }} \ - BASE_URL=${{ inputs.base_url }} \ - FLAGS_FEATURES=${{ inputs.flags_features}} \ - yarn ci:with-wallet:aave:arbitrum:regression - - uses: actions/upload-artifact@v3 - if: always() - with: - name: playwright-report-with-wallet-aave-arbitrum - path: playwright-reports/with-wallet-aave-arbitrum - retention-days: 30 + uses: ./.github/workflows/z_Reusable_RegressionAaveArbitrum.yml + with: + base_url: ${{ inputs.base_url }} + flags_features: ${{ inputs.flags_features}} + secrets: inherit with-wallet-aave-base-tests: - name: 'With wallet - Aave - Base' - runs-on: ubuntu-latest - env: - TENDERLY_PROJECT: ${{ secrets.TENDERLY_PROJECT }} - TENDERLY_USER: ${{ secrets.TENDERLY_USER }} - TENDERLY_ACCESS_KEY: ${{ secrets.TENDERLY_ACCESS_KEY }} - container: - image: synthetixio/docker-node:18.16-ubuntu - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - 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 wallet Aave Base tests - run: | - TENDERLY_PROJECT=${{ secrets.TENDERLY_PROJECT }} \ - TENDERLY_USER=${{ secrets.TENDERLY_USER }} \ - TENDERLY_ACCESS_KEY=${{ secrets.TENDERLY_ACCESS_KEY }} \ - BASE_URL=${{ inputs.base_url }} \ - FLAGS_FEATURES=${{ inputs.flags_features}} \ - yarn ci:with-wallet:aave:base:regression - - uses: actions/upload-artifact@v3 - if: always() - with: - name: playwright-report-with-wallet-aave-base - path: playwright-reports/with-wallet-aave-base - retention-days: 30 + uses: ./.github/workflows/z_Reusable_RegressionAaveBase.yml + with: + base_url: ${{ inputs.base_url }} + flags_features: ${{ inputs.flags_features}} + secrets: inherit with-wallet-aave-ethereum-tests: name: 'With wallet - Aave - Ethereum' diff --git a/.github/workflows/0_1_regressionAaveBase.yml b/.github/workflows/0_1_regressionAaveBase.yml index a1d8113e..21d4d657 100644 --- a/.github/workflows/0_1_regressionAaveBase.yml +++ b/.github/workflows/0_1_regressionAaveBase.yml @@ -16,36 +16,8 @@ on: jobs: with-wallet-aave-base-tests: - name: 'With wallet - Aave - Base' - runs-on: ubuntu-latest - env: - TENDERLY_PROJECT: ${{ secrets.TENDERLY_PROJECT }} - TENDERLY_USER: ${{ secrets.TENDERLY_USER }} - TENDERLY_ACCESS_KEY: ${{ secrets.TENDERLY_ACCESS_KEY }} - container: - image: synthetixio/docker-node:18.16-ubuntu - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - 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 wallet Aave Base tests - run: | - TENDERLY_PROJECT=${{ secrets.TENDERLY_PROJECT }} \ - TENDERLY_USER=${{ secrets.TENDERLY_USER }} \ - TENDERLY_ACCESS_KEY=${{ secrets.TENDERLY_ACCESS_KEY }} \ - BASE_URL=${{ inputs.base_url }} \ - FLAGS_FEATURES=${{ inputs.flags_features}} \ - yarn ci:with-wallet:aave:base:regression - - uses: actions/upload-artifact@v3 - if: always() - with: - name: playwright-report-with-wallet-aave-base - path: playwright-reports/with-wallet-aave-base - retention-days: 30 + uses: ./.github/workflows/z_Reusable_RegressionAaveBase.yml + with: + base_url: ${{ inputs.base_url }} + flags_features: ${{ inputs.flags_features}} + secrets: inherit diff --git a/.github/workflows/z_Reusable_RegressionAaveArbitrum.yml b/.github/workflows/z_Reusable_RegressionAaveArbitrum.yml index 30c043f2..1d2a4a4a 100644 --- a/.github/workflows/z_Reusable_RegressionAaveArbitrum.yml +++ b/.github/workflows/z_Reusable_RegressionAaveArbitrum.yml @@ -25,10 +25,6 @@ jobs: with-wallet-aave-arbitrum-tests: name: 'With wallet - Aave - Arbitrum' runs-on: ubuntu-latest - # env: - # TENDERLY_PROJECT: ${{ secrets.TENDERLY_PROJECT }} - # TENDERLY_USER: ${{ secrets.TENDERLY_USER }} - # TENDERLY_ACCESS_KEY: ${{ secrets.TENDERLY_ACCESS_KEY }} container: image: synthetixio/docker-node:18.16-ubuntu steps: diff --git a/.github/workflows/z_Reusable_RegressionAaveBase.yml b/.github/workflows/z_Reusable_RegressionAaveBase.yml new file mode 100644 index 00000000..19fa00fa --- /dev/null +++ b/.github/workflows/z_Reusable_RegressionAaveBase.yml @@ -0,0 +1,54 @@ +name: Reusable Workflow - Regression - Aave Base + +on: + workflow_call: + 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 + secrets: + TENDERLY_PROJECT: + required: true + TENDERLY_USER: + required: true + TENDERLY_ACCESS_KEY: + required: true + +jobs: + with-wallet-aave-base-tests: + name: 'With wallet - Aave - Base' + runs-on: ubuntu-latest + container: + image: synthetixio/docker-node:18.16-ubuntu + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + 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 wallet Aave Base tests + run: | + TENDERLY_PROJECT=${{ secrets.TENDERLY_PROJECT }} \ + TENDERLY_USER=${{ secrets.TENDERLY_USER }} \ + TENDERLY_ACCESS_KEY=${{ secrets.TENDERLY_ACCESS_KEY }} \ + BASE_URL=${{ inputs.base_url }} \ + FLAGS_FEATURES=${{ inputs.flags_features}} \ + yarn ci:with-wallet:aave:base:regression + - uses: actions/upload-artifact@v4 + if: always() + with: + name: playwright-report-with-wallet-aave-base + path: playwright-reports/with-wallet-aave-base + retention-days: 30