Skip to content

Commit

Permalink
Merge branch 'dev' into ahmed/plugins-refactor
Browse files Browse the repository at this point in the history
# Conflicts:
#	plugins/index.js
  • Loading branch information
duckception committed Aug 17, 2023
2 parents 98acb5f + 983b806 commit 255df39
Show file tree
Hide file tree
Showing 72 changed files with 12,170 additions and 14,942 deletions.
2 changes: 2 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ module.exports = {
'plugin:cypress/recommended',
'plugin:ui-testing/cypress',
'plugin:testing-library/react',
'turbo',
],
plugins: [
'prettier',
Expand All @@ -34,5 +35,6 @@ module.exports = {
'no-console': 0,
'testing-library/no-debugging-utils': 0,
'testing-library/prefer-screen-queries': 0,
'turbo/no-undeclared-env-vars': 0,
},
};
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
custom: ['https://etherscan.io/address/0x7b57c388e6149b5c197B925037602d5B6bafFbCc']
35 changes: 0 additions & 35 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

150 changes: 150 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
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.
42 changes: 42 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
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
20 changes: 0 additions & 20 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

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 [security@synpress.io](mailto:security@synpress.io) via E-Mail immediately after discovery of the vulnerability. Thanks!
12 changes: 12 additions & 0 deletions .github/SUPPORT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
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://docs.synpress.io)
51 changes: 23 additions & 28 deletions .github/workflows/audit_and_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,14 @@ jobs:
runs-on: ubuntu-latest

container:
image: synthetixio/docker-sec-tools:18.13-alpine
image: synthetixio/docker-sec-tools:18.16-alpine

steps:
- name: Checkout
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # pin@v2
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # pin@v2

- name: Audit dependencies
run:
audit-ci --critical --report-type full --allowlist loader-utils
underscore

- name: Lockfile lint
run:
lockfile-lint -p yarn.lock --type yarn --allowed-schemes "https:"
"git+https:" --empty-hostname false
run: audit-ci --critical --report-type full

build:
needs: audit
Expand All @@ -43,40 +36,42 @@ jobs:
runs-on: ubuntu-latest

container:
image: synthetixio/docker-node:18.13-alpine
image: synthetixio/docker-node:18.16-alpine

steps:
- name: Checkout
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # pin@v2
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # pin@v2

- name: Set yarn cache directory
run: yarn config set cache-folder .yarn-cache
- name: Set pnpm cache directory
run: pnpm config set store-dir .pnpm-store
continue-on-error: true

- uses: actions/cache@69d9d449aced6a2ede0bc19182fadc3a0a42d2b0 # pin@v2
- name: Setup cache
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # pin@v2
with:
path: |
.yarn-cache
.pnpm-store
node_modules
key: ${{ runner.os }}-yarn-v1-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-pnpm-v1-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-yarn-v1-
${{ runner.os }}-pnpm-v1-
continue-on-error: true

- name: Install dependencies
run: yarn --frozen-lockfile --prefer-offline --no-audit
run: pnpm install --frozen-lockfile --prefer-offline

- name: Lint
if:
github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev' ||
github.event_name == 'pull_request'
run: yarn lint:sarif
run: pnpm lint
# run: yarn lint:sarif

- name: Upload lint results
if:
always() && (github.ref == 'refs/heads/master' || github.ref ==
'refs/heads/dev' || github.event_name == 'pull_request')
uses: github/codeql-action/upload-sarif@32dc499307d133bb5085bae78498c0ac2cf762d5 # pin@codeql-bundle-20210517
with:
sarif_file: lint-results.sarif
continue-on-error: true
# - name: Upload lint results
# if:
# always() && (github.ref == 'refs/heads/master' || github.ref ==
# 'refs/heads/dev' || github.event_name == 'pull_request')
# uses: github/codeql-action/upload-sarif@32dc499307d133bb5085bae78498c0ac2cf762d5 # pin@codeql-bundle-20210517
# with:
# sarif_file: lint-results.sarif
# continue-on-error: true
8 changes: 4 additions & 4 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # pin@v2
- name: Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # pin@v2

- name: Initialize CodeQL
uses: github/codeql-action/init@32dc499307d133bb5085bae78498c0ac2cf762d5
uses: github/codeql-action/init@a09933a12a80f87b87005513f0abb1494c27a716
with:
queries: security-and-quality
languages: javascript

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@32dc499307d133bb5085bae78498c0ac2cf762d5
uses: github/codeql-action/analyze@a09933a12a80f87b87005513f0abb1494c27a716
Loading

0 comments on commit 255df39

Please sign in to comment.