-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #298 from OasisDEX/reusable-workflow-test-6
GitHub Acrtions - Reusable workflow
- Loading branch information
Showing
4 changed files
with
69 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |