-
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 #138 from gnosisguild/sidepanel
Turn it into a side panel
- Loading branch information
Showing
1,491 changed files
with
36,476 additions
and
68,850 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 |
---|---|---|
@@ -1,19 +1,51 @@ | ||
name: CI | ||
|
||
on: [push] | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
tests: | ||
static_checks: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: ./extension | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: pnpm/action-setup@v4 | ||
with: | ||
node-version: 21 | ||
cache: "yarn" | ||
cache-dependency-path: "**/yarn.lock" | ||
- run: yarn install --immutable | ||
working-directory: ./extension | ||
version: 9 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: latest | ||
cache: "pnpm" | ||
cache-dependency-path: "**/pnpm-lock.yaml" | ||
- run: pnpm install --prefer-offline | ||
- name: Run static checks | ||
run: yarn run check | ||
run: pnpm check | ||
unit_tests: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: ./extension | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: latest | ||
cache: "pnpm" | ||
cache-dependency-path: "**/pnpm-lock.yaml" | ||
- run: pnpm install --prefer-offline | ||
- run: pnpm test:unit | ||
- name: 'Report Coverage' | ||
# Set if: always() to also generate the report if tests are failing | ||
# Only works if you set `reportOnFailure: true` in your vite config as specified above | ||
if: always() | ||
uses: davelosert/vitest-coverage-report-action@v2 | ||
with: | ||
working-directory: extension |
This file was deleted.
Oops, something went wrong.
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,43 @@ | ||
name: Playwright Tests | ||
on: | ||
deployment_status: | ||
jobs: | ||
test: | ||
timeout-minutes: 60 | ||
runs-on: ubuntu-latest | ||
if: github.event.deployment_status.state == 'success' | ||
defaults: | ||
run: | ||
working-directory: ./extension | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: latest | ||
cache: "pnpm" | ||
cache-dependency-path: "**/pnpm-lock.yaml" | ||
- name: Install dependencies | ||
run: pnpm install --prefer-offline | ||
|
||
- name: Build | ||
run: pnpm build | ||
|
||
- name: Install Playwright Browsers | ||
run: pnpm playwright install --with-deps chromium | ||
|
||
- name: Run Playwright tests | ||
run: xvfb-run pnpm playwright test | ||
env: | ||
PLAYWRIGHT_TEST_BASE_URL: ${{ github.event.deployment_status.target_url }} | ||
VERCEL_PROTECTION_BYPASS: ${{ secrets.VERCEL_PROTECTION_BYPASS }} | ||
PW_CHROMIUM_ATTACH_TO_OTHER: 1 | ||
|
||
- uses: actions/upload-artifact@v4 | ||
if: ${{ !cancelled() }} | ||
with: | ||
name: playwright-report | ||
path: playwright-report/ | ||
retention-days: 30 |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
This is a minimal web app running under https://connect.pilot.gnosisguild.org to allow connecting to the user's wallet extension. | ||
This is an empty web app running under https://connect.pilot.gnosisguild.org to allow connecting to the user's wallet extension. | ||
|
||
It communicates with the Pilot extension side panel through `window.postMessage`. | ||
It's sole purpose is having a host for connecting to the wallet. | ||
Since extensions don't have access to injected wallets, Pilot will load this empty site in an iframe injecting a script to use it as a bridge to the wallet. |
Oops, something went wrong.