Skip to content

Commit

Permalink
Merge branch 'master' of github.com:binary-com/deriv-app into henry/9…
Browse files Browse the repository at this point in the history
…1709/test-coverage-for-poi-unsupported-failed
  • Loading branch information
henry-deriv committed Jun 5, 2023
2 parents 3d75155 + e2ef565 commit f7b0122
Show file tree
Hide file tree
Showing 1,786 changed files with 86,190 additions and 73,484 deletions.
19 changes: 19 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ jobs:
build:
docker:
- image: cimg/node:16.16.0
resource_class: xlarge
steps:
- git_checkout_from_cache
- npm_install_from_cache
Expand All @@ -187,6 +188,7 @@ jobs:
release_staging:
docker:
- image: cimg/node:16.16.0
resource_class: xlarge
steps:
- git_checkout_from_cache
- npm_install_from_cache
Expand All @@ -206,6 +208,7 @@ jobs:
release_production:
docker:
- image: cimg/node:16.16.0
resource_class: xlarge
steps:
- git_checkout_from_cache
- npm_install_from_cache
Expand Down Expand Up @@ -247,9 +250,25 @@ jobs:
build_and_test:
docker:
- image: cimg/node:16.16.0
resource_class: xlarge
steps:
- git_checkout_from_cache
- npm_install_from_cache
- run:
name: "Check TypeScript for @deriv/api"
command: npx tsc --project packages/api/tsconfig.json -noEmit
- run:
name: "Check TypeScript for @deriv/hooks"
command: npx tsc --project packages/hooks/tsconfig.json -noEmit
- run:
name: "Check TypeScript for @deriv/stores"
command: npx tsc --project packages/stores/tsconfig.json -noEmit
# - run:
# name: "Check TypeScript for @deriv/cashier"
# command: npx tsc --project packages/cashier/tsconfig.json -noEmit
- run:
name: "Check tests for @deriv/hooks"
command: bash ./scripts/check-tests.sh packages/hooks/src
- build
- run:
name: "Run tests"
Expand Down
1 change: 0 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ module.exports = {
'import/prefer-default-export': 0,
'import/extensions': [0, { jsx: 'always', json: 'always' }],
'no-sequences': ['warn'],
'react/no-unknown-property': 1,
'import/no-unresolved': [2, { ignore: ['@deriv/components', '@deriv/shared'] }],

// react rules
Expand Down
33 changes: 3 additions & 30 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,7 @@
## Changes:

Please include a summary of the change and which issue is fixed below:
- ...
Please provide a summary of the change.

## When you need to add unit test
### Screenshots:

- [ ] If this change disrupt current flow
- [ ] If this change is adding new flow

## When you need to add integration test

- [ ] If components from external libraries are being used to define the flow, e.g. @deriv/components
- [ ] If it relies on a very specific set of props with no default behavior for the current component.

## Test coverage checklist (for reviewer)

- [ ] Ensure utility / function has a test case
- [ ] Ensure all the tests are passing

## Type of change

- [ ] Bug fix
- [ ] New feature
- [ ] Update feature
- [ ] Refactor code
- [ ] Translation to code
- [ ] Translation to crowdin
- [ ] Script configuration
- [ ] Improve performance
- [ ] Style only
- [ ] Dependency update
- [ ] Documentation update
- [ ] Release
Please provide some screenshots of the change.
6 changes: 3 additions & 3 deletions .github/workflows/generate_app_id.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- **PR**: [${{ steps.generate_app_id.outputs.pr_url }}](${{ steps.generate_app_id.outputs.pr_url }})
- **URLs**:
- **w/ App ID + Server**: ${{ steps.vercel_preview_url.outputs.vercel_preview_url }}?qa_server=frontend.binaryws.com&app_id=${{ steps.generate_app_id.outputs.app_id }}
- **w/ App ID + Server**: ${{ steps.vercel_preview_url.outputs.vercel_preview_url }}?qa_server=red.binaryws.com&app_id=${{ steps.generate_app_id.outputs.app_id }}
- **Original**: ${{ steps.vercel_preview_url.outputs.vercel_preview_url }}
- **App ID**: `${{ steps.generate_app_id.outputs.app_id }}`
Expand All @@ -55,14 +55,14 @@ jobs:
```
- **PR**: [${{ steps.generate_app_id.outputs.pr_url }}](${{ steps.generate_app_id.outputs.pr_url }})
- **URLs**:
- **w/ App ID + Server**: ${{ steps.vercel_preview_url.outputs.vercel_preview_url }}?qa_server=frontend.binaryws.com&app_id=${{ steps.generate_app_id.outputs.app_id }}
- **w/ App ID + Server**: ${{ steps.vercel_preview_url.outputs.vercel_preview_url }}?qa_server=red.binaryws.com&app_id=${{ steps.generate_app_id.outputs.app_id }}
- **Original**: ${{ steps.vercel_preview_url.outputs.vercel_preview_url }}
- **App ID**: `${{ steps.generate_app_id.outputs.app_id }}`
```
</details>
- name: Store generated URL in artifact
run: echo "HOME_URL=${{ steps.vercel_preview_url.outputs.vercel_preview_url }}?qa_server=frontend.binaryws.com&app_id=${{ steps.generate_app_id.outputs.app_id }}" >> ${{ github.workspace }}/url.txt
run: echo "HOME_URL=${{ steps.vercel_preview_url.outputs.vercel_preview_url }}?qa_server=red.binaryws.com&app_id=${{ steps.generate_app_id.outputs.app_id }}" >> ${{ github.workspace }}/url.txt
- name: Upload artifact
uses: actions/upload-artifact@master
with:
Expand Down
42 changes: 0 additions & 42 deletions .github/workflows/run-e2e-test.yml

This file was deleted.

25 changes: 25 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
permissions:
issues: write
pull-requests: write

name: 'Close stale issues and PRs'
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v8
with:
stale-issue-message: 'This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days.'
stale-pr-message: 'This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days.'
close-issue-message: 'This issue was closed because it has been stalled for 5 days with no activity. Please reopen it if needed.'
close-pr-message: 'This PR was closed because it has been stalled for 5 days with no activity. Please reopen it if needed.'
days-before-stale: 60
days-before-close: 5
ascending: true
operations-per-run: 200

67 changes: 0 additions & 67 deletions e2e_tests/.env.example

This file was deleted.

5 changes: 0 additions & 5 deletions e2e_tests/.eslintrc.js

This file was deleted.

2 changes: 0 additions & 2 deletions e2e_tests/.gitignore

This file was deleted.

104 changes: 0 additions & 104 deletions e2e_tests/README.md

This file was deleted.

Loading

0 comments on commit f7b0122

Please sign in to comment.