forked from Uniswap/interface
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into remove-nft-and-airdrop-related-modals
- Loading branch information
Showing
53 changed files
with
83 additions
and
263 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -151,53 +151,12 @@ jobs: | |
key: ${{ runner.os }}-hardhat-${{ hashFiles('hardhat.config.js') }}-${{ github.run_id }} | ||
restore-keys: ${{ runner.os }}-hardhat-${{ hashFiles('hardhat.config.js') }}- | ||
|
||
- uses: cypress-io/github-action@v4 | ||
with: | ||
install: false | ||
record: true | ||
parallel: true | ||
start: yarn serve | ||
wait-on: 'http://localhost:3000' | ||
browser: electron | ||
group: e2e | ||
spec: ${{ github.ref_name == 'releases/staging' && 'cypress/{e2e,staging}/**/*.test.ts' || 'cypress/e2e/**/*.test.ts' }} | ||
env: | ||
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
COMMIT_INFO_BRANCH: ${{ github.event.pull_request.head.ref || github.ref_name }} | ||
COMMIT_INFO_MESSAGE: ${{ github.event.pull_request.title || github.event.head_commit.message }} | ||
COMMIT_INFO_AUTHOR: ${{ github.event.sender.login || github.event.head_commit.author.login }} | ||
# Cypress requires an email for filtering by author, but GitHub does not expose one. | ||
# GitHub's public profile email can be deterministically produced from user id/login. | ||
COMMIT_INFO_EMAIL: ${{ github.event.sender.id || github.event.head_commit.author.id }}+${{ github.event.sender.login || github.event.head_commit.author.login }}@users.noreply.github.com | ||
COMMIT_INFO_SHA: ${{ github.event.pull_request.head.sha || github.event.head_commit.sha }} | ||
COMMIT_INFO_TIMESTAMP: ${{ github.event.pull_request.updated_at || github.event.head_commit.timestamp }} | ||
CYPRESS_PULL_REQUEST_ID: ${{ github.event.pull_request.number }} | ||
CYPRESS_PULL_REQUEST_URL: ${{ github.event.pull_request.html_url }} | ||
- if: failure() && github.ref_name == 'main' | ||
uses: ./.github/actions/report | ||
with: | ||
name: Cypress tests | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_TEST_REPORTER_WEBHOOK }} | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: hardhat-cache | ||
path: cache | ||
|
||
hardhat-cache: | ||
needs: [cypress-test-matrix] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: hardhat-cache | ||
path: cache | ||
- uses: actions/cache/save@v3 | ||
with: | ||
path: cache | ||
key: ${{ runner.os }}-hardhat-${{ hashFiles('hardhat.config.js') }}-${{ github.run_id }} | ||
|
||
cloud-typecheck: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -214,25 +173,6 @@ jobs: | |
with: | ||
name: Cloud typecheck | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_TEST_REPORTER_WEBHOOK }} | ||
|
||
cloud-tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ./.github/actions/setup | ||
- uses: actions/cache@v3 | ||
with: | ||
path: node_modules/.cache | ||
key: ${{ runner.os }}-cloud-jest-${{ github.run_id }} | ||
restore-keys: ${{ runner.os }}-cloud-jest- | ||
# Ignore start:cloud output so it doesn't flood the test output. | ||
# Only use 1 worker for testing, as the other is used to run start:cloud (the proxy server under test). | ||
- run: yarn start-server-and-test 'yarn start:cloud >/dev/null' 3000 'yarn test:cloud --coverage --maxWorkers=1' | ||
- uses: codecov/codecov-action@v3 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
fail_ci_if_error: false | ||
flags: cloud-tests | ||
|
||
pre: | ||
if: ${{ github.ref_name == 'main' || github.ref_name == 'releases/staging' }} | ||
|
@@ -253,7 +193,7 @@ jobs: | |
post: | ||
if: ${{ github.ref_name == 'main' || github.ref_name == 'releases/staging' }} | ||
needs: [pre, lint, typecheck, deps-tests, unit-tests, cypress-test-matrix, cloud-tests] | ||
needs: [pre, lint, typecheck, deps-tests, unit-tests, cypress-test-matrix] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
|
@@ -274,5 +214,4 @@ jobs: | |
${{ needs.typecheck.result == 'success' }} && | ||
${{ needs.deps-tests.result == 'success' }} && | ||
${{ needs.unit-tests.result == 'success' }} && | ||
${{ needs.cypress-test-matrix.result == 'success' }} && | ||
${{ needs.cloud-tests.result == 'success' }} | ||
${{ needs.cypress-test-matrix.result == 'success' }} |
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
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
Oops, something went wrong.