Skip to content

Commit

Permalink
Merge branch 'new-dawn' into chore/unify-metamask-dapp-port
Browse files Browse the repository at this point in the history
  • Loading branch information
matstyler authored Feb 5, 2024
2 parents 2245158 + 4294a2f commit 49cf5a8
Show file tree
Hide file tree
Showing 21 changed files with 2,802 additions and 1,232 deletions.
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
custom:
["https://etherscan.io/address/0x7b57c388e6149b5c197B925037602d5B6bafFbCc"]
149 changes: 149 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
name: 🐛 Bug report
description: Create a report with an issue.
title: "[🐛 Bug]: <title>"
labels: [bug 🐛, needs triaging ⏳]
body:
- type: checkboxes
attributes:
label: 🔎 Have you searched existing issues to avoid duplicates?
options:
- label: I have made sure that my issue is not a duplicate.
required: true

- type: checkboxes
attributes:
label: 🧪 Have you tested your code using latest version of Synpress?
options:
- label: I have made sure that my issue still exists on [latest version of Synpress](https://github.com/Synthetixio/synpress/releases).
required: true

- type: checkboxes
attributes:
label: 💡 Are you able to provide enough information to be able to reproduce your issue locally?
options:
- label: I can provide enough details to reproduce my issue on local environment.
required: true

- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report!
- type: markdown
attributes:
value: |
First, let's get some information about the environment you are using:
- type: input
id: synpress-version
attributes:
label: Synpress version
description: Which version of Synpress are you running?
placeholder: 3.x.x
validations:
required: true

- type: input
id: node-version
attributes:
label: Node.js version
description: Which version of Node.js are you using?
placeholder: 18.x.x
validations:
required: true

- type: input
id: os
attributes:
label: Operating system
description: Which OS are you using?
placeholder: macOS Ventura 13.x.x
validations:
required: true

- type: dropdown
id: run-mode
attributes:
label: Run mode
description: Which run mode are you using to run your tests?
options:
- Synpress (standalone)
- Cypress + Synpress (as plugin)
- Playwright + Synpress (as plugin)
validations:
required: true

- type: input
id: ci
attributes:
label: CI platform (if applicable)
description: Which CI platform are you using?
placeholder: CircleCI

- type: checkboxes
attributes:
label: Are you running your tests inside docker? (if applicable)
options:
- label: This issue could be related to docker.

- type: textarea
id: what-happened
attributes:
label: What happened?
description: |
Describe clearly and concisely the bug including instructions showing how to reproduce it.
placeholder: |
Please add as many details as possible to avoid assumptions from our side. How do you
trigger this bug? Please walk us through it step by step.
validations:
required: true

- type: textarea
id: what-is-expected
attributes:
label: What is your expected behavior?
description: |
What did you expect to happen instead?
validations:
required: false

- type: textarea
id: reproducible-example
attributes:
label: How to reproduce the bug.
description: |
It is essential for us to be able to reproduce the bug on our own machines.
Please either create a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) in a [new repository](https://github.com/new), a [gist](https://gist.github.com/) or copy and paste all necessary files in here.
> **What happens if you skip this step?** Someone will read your bug report, and maybe will be able to help you, but it’s unlikely that it will get much attention from the team. Eventually, the issue will likely get closed in favor of issues that have reproducible demos.
Please remember that:
- Issues without reproducible demos have a very low priority.
- The person fixing the bug would have to do that anyway. Please be respectful of their time.
- You might figure out the issues yourself as you work on extracting it.
Thanks for helping us help you!
placeholder: |
To reproduce the bug, create a file with the following code:
```js
...
```
Then run:
```sh
$ node reproducibleExample.js
````
validations:
required: true

- type: textarea
id: logs
attributes:
label: Relevant log output
description: |
Please copy and paste any relevant log output.
Setting `DEBUG=synpress:*` env flag before running your tests will provide more descriptive logs.
render: typescript
validations:
required: false
4 changes: 4 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
contact_links:
- name: ❓ Questions / Help
url: https://discord.gg/XhZKSRGtWc
about: Please ask and answer questions about using Synpress on our Discord - do not raise issues for questions.
41 changes: 41 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: 💡 Feature request
description: Suggest an idea for Synpress.
title: "[💡 Feature]: <title>"
labels: [idea 💡, needs triaging ⏳]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time and for sharing your great idea with us. Synpress is an open source project and lives from these great ideas.
- type: textarea
id: problem
attributes:
label: Is your feature request related to a problem?
description: A clear and concise description of what the problem is. Ex. I'm always frustrated when [...].
validations:
required: true

- type: textarea
id: solution
attributes:
label: Describe the solution you'd like.
description: A clear and concise description of what you want to happen.
validations:
required: true

- type: textarea
id: alternatives
attributes:
label: Describe alternatives you've considered.
description: A clear and concise description of any alternative solutions or features you've considered.
validations:
required: false

- type: textarea
id: context
attributes:
label: Additional context
description: Add any other context or screenshots about the feature request here.
validations:
required: false
5 changes: 5 additions & 0 deletions .github/SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Reporting Security Issues

If you believe you have found a security vulnerability in Synpress, we encourage you to let us know right away. We will investigate all legitimate reports and do our best to quickly fix the problem.

Please contact us [[email protected]](mailto:[email protected]) via E-Mail immediately after discovery of the vulnerability. Thanks!
11 changes: 11 additions & 0 deletions .github/SUPPORT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Synpress Support

Welcome to Synpress! We use GitHub for tracking bugs and feature requests. This isn't the right place to get support for using Synpress, but the following resources are available below, thanks for understanding.

## Real-time Chat

- [Discord](https://discord.gg/XhZKSRGtWc)

## User Documentation

- [User Documentation](https://synpress.io)
2 changes: 1 addition & 1 deletion .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ runs:
steps:
- uses: pnpm/action-setup@v2
with:
version: 8.7.6
version: 8.15.1

- uses: actions/setup-node@v3
with:
Expand Down
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
29 changes: 29 additions & 0 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: 🔎 Audit

on:
push:
branches:
- new-dawn
pull_request:
paths:
- 'pnpm-*.yaml'
- 'package.json'
- 'packages/**/package.json'
- 'wallets/**/package.json'
- 'examples/**/package.json'
- 'release/package.json'
- 'docs/package.json'

jobs:
audit:
name: Audit dependencies
runs-on: ubuntu-latest
container:
image: synthetixio/docker-sec-tools:20.11-alpine

steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # [email protected]

- name: Audit dependencies
run: audit-ci --critical --report-type full
30 changes: 30 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CodeQL

on:
push:
branches:
- new-dawn
pull_request:
schedule:
- cron: '0 6 * * 3'

jobs:
analyze:
runs-on: ubuntu-latest
permissions:
security-events: write

steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # [email protected]

- name: Initialize CodeQL
uses: github/codeql-action/init@65c74964a9ed8c44ed9f19d4bbc5757a6a8e9ab9 # [email protected]
with:
queries: security-and-quality
languages: javascript-typescript

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@65c74964a9ed8c44ed9f19d4bbc5757a6a8e9ab9 # [email protected]
with:
category: "/language:javascript-typescript"
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,7 @@ playwright/.cache
### Synpress

.cache-synpress

### Vercel

.vercel
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v18.17.1
v20.11
6 changes: 3 additions & 3 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"devDependencies": {
"@synthetixio/synpress": "workspace:*",
"@synthetixio/synpress-tsconfig": "workspace:*",
"typedoc": "^0.25.6",
"typedoc": "0.25.7",
"typedoc-plugin-markdown": "4.0.0-next.38",
"typedoc-vitepress-theme": "^1.0.0-next.4",
"vitepress": "1.0.0-rc.39"
"typedoc-vitepress-theme": "1.0.0-next.8",
"vitepress": "1.0.0-rc.41"
}
}
10 changes: 5 additions & 5 deletions examples/new-dawn/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
"test:e2e:headless:ui": "HEADLESS=true playwright test --ui"
},
"dependencies": {
"@playwright/test": "1.41.1",
"@playwright/test": "1.41.2",
"@synthetixio/synpress": "4.0.0-alpha.0",
"dotenv": "16.3.1"
"dotenv": "16.4.1"
},
"devDependencies": {
"@metamask/test-dapp": "8.0.0",
"@types/node": "20.10.2",
"@metamask/test-dapp": "8.1.0",
"@types/node": "20.11.16",
"serve": "14.2.1",
"typescript": "5.3.2"
"typescript": "5.3.3"
}
}
22 changes: 12 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,25 @@
"sort-package-json:check": "sort-package-json 'package.json' '{packages,wallets,examples}/*/package.json' --check",
"test": "turbo test",
"test:e2e:headful": "turbo test:e2e:headful --filter=@synthetixio/synpress-metamask",
"test:e2e:headless": "turbo test:e2e:headless --filter=@synthetixio/synpress-metamask"
"test:e2e:headless": "turbo test:e2e:headless --filter=@synthetixio/synpress-metamask",
"update:deps": "ncu -u -ws --root"
},
"lint-staged": {
"package.json": "sort-package-json"
},
"devDependencies": {
"@biomejs/biome": "1.2.2",
"@changesets/cli": "^2.27.1",
"@metamask/test-dapp": "^8.0.0",
"commitlint-config-gitmoji": "^2.3.1",
"husky": "^8.0.0",
"lint-staged": "^14.0.1",
"serve": "^14.2.1",
"sort-package-json": "^2.5.1",
"turbo": "^1.10.14"
"@changesets/cli": "2.27.1",
"@metamask/test-dapp": "8.1.0",
"commitlint-config-gitmoji": "2.3.1",
"husky": "9.0.10",
"lint-staged": "15.2.1",
"npm-check-updates": "16.14.14",
"serve": "14.2.1",
"sort-package-json": "2.7.0",
"turbo": "1.12.2"
},
"packageManager": "pnpm@8.7.6",
"packageManager": "pnpm@8.15.1",
"engines": {
"node": ">=18",
"pnpm": ">=8"
Expand Down
Loading

0 comments on commit 49cf5a8

Please sign in to comment.