Skip to content

Commit

Permalink
Merge pull request #298 from OasisDEX/reusable-workflow-test-6
Browse files Browse the repository at this point in the history
GitHub Acrtions - Reusable workflow
  • Loading branch information
juan-langa authored May 16, 2024
2 parents 78da88e + 4b63dac commit 98a88a4
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 103 deletions.
76 changes: 10 additions & 66 deletions .github/workflows/0_0_regressionAll.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
38 changes: 5 additions & 33 deletions .github/workflows/0_1_regressionAaveBase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 0 additions & 4 deletions .github/workflows/z_Reusable_RegressionAaveArbitrum.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
54 changes: 54 additions & 0 deletions .github/workflows/z_Reusable_RegressionAaveBase.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 98a88a4

Please sign in to comment.