forked from safe-global/safe-wallet-web
-
Notifications
You must be signed in to change notification settings - Fork 8
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 #4 from bobanetwork/safe
Support BOBA L2s
- Loading branch information
Showing
982 changed files
with
42,367 additions
and
13,461 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
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,57 @@ | ||
name: 'Cypress' | ||
|
||
description: 'Run Cypress' | ||
|
||
inputs: | ||
secrets: | ||
description: 'GitHub secrets as JSON' | ||
required: true | ||
|
||
spec: | ||
description: 'A glob pattern for which tests to run' | ||
required: true | ||
|
||
group: | ||
description: 'The name of the group (e.g. "smoke")' | ||
required: true | ||
|
||
project_id: | ||
description: 'Cypress cloud project id' | ||
required: false | ||
|
||
record_key: | ||
description: 'Cypress cloud record key' | ||
required: false | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
- uses: ./.github/workflows/yarn | ||
|
||
- name: Install Latest stable Chrome Version | ||
shell: bash | ||
run: | | ||
curl -O 'https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb' | ||
sudo apt-get install ./google-chrome-stable_current_amd64.deb | ||
- uses: ./.github/workflows/build | ||
with: | ||
secrets: ${{ inputs.secrets }} | ||
e2e_mnemonic: ${{ fromJSON(inputs.secrets).NEXT_PUBLIC_CYPRESS_MNEMONIC }} | ||
|
||
- name: Serve | ||
shell: bash | ||
run: yarn serve & | ||
|
||
- uses: cypress-io/github-action@v4 | ||
with: | ||
spec: ${{ inputs.spec }} | ||
group: ${{ inputs.group }} | ||
parallel: true | ||
browser: chrome | ||
record: true | ||
config: baseUrl=http://localhost:8080 | ||
env: | ||
CYPRESS_RECORD_KEY: ${{ inputs.record_key || fromJSON(inputs.secrets).CYPRESS_RECORD_KEY }} | ||
GITHUB_TOKEN: ${{ fromJSON(inputs.secrets).GITHUB_TOKEN }} | ||
CYPRESS_PROJECT_ID: ${{ inputs.project_id }} |
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
File renamed without changes.
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,58 @@ | ||
name: Happy path on demand tests | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 4 * * 1,4' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
e2e: | ||
runs-on: ubuntu-20.04 | ||
name: Cypress Happy path on demand tests | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
containers: [1, 2, 3, 4, 5] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: ./.github/workflows/cypress | ||
with: | ||
secrets: ${{ toJSON(secrets) }} | ||
spec: | | ||
cypress/e2e/happypath/*.cy.js | ||
group: 'Happy path on demand tests' | ||
|
||
- name: Python setup | ||
if: always() | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Install junitparser | ||
if: always() | ||
run: | | ||
pip install junitparser | ||
- name: Merge JUnit reports for TestRail | ||
if: always() | ||
run: | | ||
junitparser merge --suite-name "Root Suite" --glob "reports/junit-*" "reports/junit-report.xml" | ||
- name: TestRail CLI upload results | ||
if: always() | ||
run: | | ||
pip install trcli | ||
trcli -y \ | ||
-h https://gno.testrail.io/ \ | ||
--project "Safe- Web App" \ | ||
--username ${{ secrets.TESTRAIL_USERNAME }} \ | ||
--password ${{ secrets.TESTRAIL_PASSWORD }} \ | ||
parse_junit \ | ||
--title "Happy path Tests, branch: ${GITHUB_REF_NAME}" \ | ||
--run-description ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \ | ||
-f "reports/junit-report.xml" |
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,60 @@ | ||
name: Regression on demand tests | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 4 * * 1-5' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
e2e: | ||
runs-on: ubuntu-20.04 | ||
name: Cypress Regression on demand tests | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
containers: [1, 2, 3, 4, 5] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: ./.github/workflows/cypress | ||
with: | ||
secrets: ${{ toJSON(secrets) }} | ||
spec: | | ||
cypress/e2e/regression/*.cy.js | ||
cypress/e2e/safe-apps/*.cy.js | ||
cypress/e2e/smoke/*.cy.js | ||
group: 'Regression on demand tests' | ||
|
||
- name: Python setup | ||
if: always() | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Install junitparser | ||
if: always() | ||
run: | | ||
pip install junitparser | ||
- name: Merge JUnit reports for TestRail | ||
if: always() | ||
run: | | ||
junitparser merge --suite-name "Root Suite" --glob "reports/junit-*" "reports/junit-report.xml" | ||
- name: TestRail CLI upload results | ||
if: always() | ||
run: | | ||
pip install trcli | ||
trcli -y \ | ||
-h https://gno.testrail.io/ \ | ||
--project "Safe- Web App" \ | ||
--username ${{ secrets.TESTRAIL_USERNAME }} \ | ||
--password ${{ secrets.TESTRAIL_PASSWORD }} \ | ||
parse_junit \ | ||
--title "Automated Tests, branch: ${GITHUB_REF_NAME}" \ | ||
--run-description ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \ | ||
-f "reports/junit-report.xml" |
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,28 @@ | ||
name: Regression tests | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- 'release**' | ||
- 'release/**' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
e2e: | ||
runs-on: ubuntu-20.04 | ||
name: Cypress Regression tests | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
containers: [1, 2, 3] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: ./.github/workflows/cypress | ||
with: | ||
secrets: ${{ toJSON(secrets) }} | ||
spec: cypress/e2e/**/*.cy.js | ||
group: 'Regression tests' |
Oops, something went wrong.