Skip to content

Commit

Permalink
Merge pull request #13 from shaheer-deriv/migrate_svg_to_bvi_dvl
Browse files Browse the repository at this point in the history
Migrate svg to bvi dvl
  • Loading branch information
shaheer-deriv committed Oct 25, 2023
2 parents 6d06aa7 + 86bf0e6 commit f75c138
Show file tree
Hide file tree
Showing 763 changed files with 20,083 additions and 9,339 deletions.
6 changes: 3 additions & 3 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@
# deriv-app/bot
# ==============================================================

/packages/bot-skeleton/**/* @prince-deriv @sandeep-deriv
/packages/bot-web-ui/**/* @prince-deriv @sandeep-deriv
/packages/indicators/**/* @prince-deriv @sandeep-deriv
/packages/bot-skeleton/**/* @prince-deriv @sandeep-deriv @vinu-deriv
/packages/bot-web-ui/**/* @prince-deriv @sandeep-deriv @vinu-deriv
/packages/indicators/**/* @prince-deriv @sandeep-deriv @vinu-deriv


# ==============================================================
Expand Down
22 changes: 22 additions & 0 deletions .github/actions/publish_to_pages_uat/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: publish_to_pages_uat
description: Publish to cloudflare pages (UAT)
inputs:
CLOUDFLARE_ACCOUNT_ID:
description: 'Cloudflare account id'
required: true
CLOUDFLARE_API_TOKEN:
description: 'Cloudflare token'
required: true
runs:
using: composite
steps:
- name: Publish to cloudflare pages (UAT)
env:
CLOUDFLARE_ACCOUNT_ID: ${{ inputs.CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ inputs.CLOUDFLARE_API_TOKEN }}
run: |
npm i wrangler@3.1.0
cd packages/core
npx wrangler pages deploy dist/ --project-name=deriv-app-pages --branch=uat
echo "New uat website - https://uat.cf-pages-deriv-app.deriv.com"
shell: bash
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=red.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.derivws.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=red.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.derivws.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=red.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.derivws.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
2 changes: 1 addition & 1 deletion .github/workflows/release_staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Deriv App Staging Workflow
on:
push:
branches:
- master
- rc_*

jobs:
build_test_and_publish:
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/release_uat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Deriv App Release to UAT Environment
on:
pull_request:
branches:
- uat
workflow_dispatch:

jobs:
build_test_and_publish:
name: Build, Test and Publish to Cloudflare UAT
runs-on: Runner_16cores_Deriv-app
environment: Staging
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: "./.github/actions/setup_node"
- name: Install Dependencies
uses: "./.github/actions/npm_install_from_cache"
- name: Build
uses: "./.github/actions/build"
with:
NODE_ENV: staging
DATADOG_APPLICATION_ID: ${{ vars.DATADOG_APPLICATION_ID }}
DATADOG_CLIENT_TOKEN: ${{ vars.DATADOG_CLIENT_TOKEN }}
DATADOG_CLIENT_TOKEN_LOGS: ${{ vars.DATADOG_CLIENT_TOKEN_LOGS }}
DATADOG_SESSION_REPLAY_SAMPLE_RATE: ${{ vars.DATADOG_SESSION_REPLAY_SAMPLE_RATE }}
DATADOG_SESSION_SAMPLE_RATE: ${{ vars.DATADOG_SESSION_SAMPLE_RATE }}
DATADOG_SESSION_SAMPLE_RATE_LOGS: ${{ vars.DATADOG_SESSION_SAMPLE_RATE_LOGS }}
GD_API_KEY: ${{ secrets.GD_API_KEY }}
GD_APP_ID: ${{ secrets.GD_APP_ID }}
GD_CLIENT_ID: ${{ secrets.GD_CLIENT_ID }}
RUDDERSTACK_STAGING_KEY: ${{ vars.RUDDERSTACK_STAGING_KEY }}
RUDDERSTACK_URL: ${{ vars.RUDDERSTACK_URL }}
- name: Run tests
run: npm test
- name: Publish to Cloudflare Pages UAT
uses: "./.github/actions/publish_to_pages_uat"
with:
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
build_and_test:
name: Build And Test
Expand All @@ -15,6 +18,9 @@ jobs:
uses: "./.github/actions/setup_node"
- name: Install dependencies
uses: "./.github/actions/npm_install_from_cache"
- name: Invalidate NPM Cache
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
uses: "./.github/actions/invalidate_npm_cache"
- name: Build
uses: "./.github/actions/build"
- name: Check TypeScript for @deriv/api
Expand Down
4 changes: 2 additions & 2 deletions docs/Dependencies/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ lerna exec --scope @deriv/[Package] -- npm update [package]

2. update the version in `package.json` for the package

For Example if you want update web-push-notifications in core package:
For Example if you want update moment in core package:

1. `lerna exec --scope @deriv/core -- npm update web-push-notifications`
1. `lerna exec --scope @deriv/core -- npm update moment`
2. upate the `package.json`

### Remove
Expand Down
Loading

0 comments on commit f75c138

Please sign in to comment.