Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete README.md #6

Open
wants to merge 40 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
50000f6
chore: setup preview link generation
balakrishna-deriv Dec 29, 2023
cb3838b
chore: remove unused workflows
balakrishna-deriv Dec 29, 2023
bef6644
chore: add PAT
balakrishna-deriv Dec 29, 2023
a63ccff
chore: remove deriv-app deploy
balakrishna-deriv Dec 29, 2023
37f454f
new changes
ahmadtaimoor-deriv Feb 2, 2024
73a50fe
Merge branch 'setup-test-links' of https://github.com/balakrishna-der…
ahmadtaimoor-deriv Feb 2, 2024
d15ca38
generate link
ahmadtaimoor-deriv Feb 2, 2024
b959c6b
testing test link
ahmadtaimoor-deriv Feb 2, 2024
dfd05ad
test link
ahmadtaimoor-deriv Feb 2, 2024
1967ff2
Delete README.md
ahmadtaimoor-deriv Feb 2, 2024
0b25777
test link
ahmadtaimoor-deriv Feb 2, 2024
09ce0ce
Merge branch 'master' into ahmadtaimoor-deriv-patch-4
ahmadtaimoor-deriv Feb 2, 2024
79fb53f
test link
ahmadtaimoor-deriv Feb 2, 2024
0a1c30c
Merge branch 'master' into ahmadtaimoor-deriv-patch-4
ahmadtaimoor-deriv Feb 2, 2024
3ac4481
testing link
ahmadtaimoor-deriv Feb 2, 2024
8d1926a
testing link
ahmadtaimoor-deriv Feb 2, 2024
483ab62
Merge branch 'master' into ahmadtaimoor-deriv-patch-4
ahmadtaimoor-deriv Feb 2, 2024
b9a0c1e
testing link
ahmadtaimoor-deriv Feb 2, 2024
c515898
Merge branch 'master' into ahmadtaimoor-deriv-patch-4
ahmadtaimoor-deriv Feb 2, 2024
d942f70
testing link
ahmadtaimoor-deriv Feb 2, 2024
2e60a11
Merge branch 'master' into ahmadtaimoor-deriv-patch-4
ahmadtaimoor-deriv Feb 2, 2024
895fed1
testing link
ahmadtaimoor-deriv Feb 2, 2024
33aef98
Merge branch 'master' into ahmadtaimoor-deriv-patch-4
ahmadtaimoor-deriv Feb 2, 2024
69a8e60
testing link
ahmadtaimoor-deriv Feb 2, 2024
a6f2348
Merge branch 'master' into ahmadtaimoor-deriv-patch-4
ahmadtaimoor-deriv Feb 2, 2024
d226687
testing link
ahmadtaimoor-deriv Feb 2, 2024
1bf3f5e
testing link
ahmadtaimoor-deriv Feb 2, 2024
fedd9ae
Merge branch 'master' into ahmadtaimoor-deriv-patch-4
ahmadtaimoor-deriv Feb 2, 2024
f9c8f4b
testing link
ahmadtaimoor-deriv Feb 2, 2024
e1b828d
Merge branch 'master' into ahmadtaimoor-deriv-patch-4
ahmadtaimoor-deriv Feb 2, 2024
ca7c9bf
testing link
ahmadtaimoor-deriv Feb 2, 2024
3638a4f
Merge branch 'master' into ahmadtaimoor-deriv-patch-4
ahmadtaimoor-deriv Feb 2, 2024
4f5e282
testing link
ahmadtaimoor-deriv Feb 2, 2024
860ad06
Merge branch 'master' into ahmadtaimoor-deriv-patch-4
ahmadtaimoor-deriv Feb 2, 2024
27a53bb
testing link
ahmadtaimoor-deriv Feb 2, 2024
d54e670
Merge branch 'master' into ahmadtaimoor-deriv-patch-4
ahmadtaimoor-deriv Feb 2, 2024
1bd0399
testing link
ahmadtaimoor-deriv Feb 2, 2024
30e3db7
Merge branch 'master' into ahmadtaimoor-deriv-patch-4
ahmadtaimoor-deriv Feb 2, 2024
fd63af6
testing link
ahmadtaimoor-deriv Feb 2, 2024
04b11cd
Merge branch 'master' into ahmadtaimoor-deriv-patch-4
ahmadtaimoor-deriv Feb 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Configuration of code ownership and review approvals for the binary-com/deriv-app repo.
#
# More info: https://help.github.com/articles/about-codeowners/
#

* @binary-com/write-admin-smartcharts
68 changes: 68 additions & 0 deletions .github/actions/checkout/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Checkout

inputs:
fetch-depth:
default: 1
required: false
type: number
path:
required: false
type: string
repository:
default: ${{ github.repository }}
required: false
type: string
ref:
required: false
type: string
alternate_repository:
required: false
type: string
alternate_ref:
required: false
type: string
token:
default: ${{ github.token }}
required: false
type: string

outputs:
ref_exists:
description: 'Specifies whether the ref exists or not'
value: ${{ steps.repo.outputs.ref-exists }}

runs:
using: composite

steps:
- id: repo
shell: bash
env:
GH_TOKEN: ${{ inputs.token }}
run: |
if git ls-remote --heads --quiet --exit-code https://${{ inputs.token }}@github.com/${{ inputs.repository }}.git ${{ inputs.ref }}
then
echo "::notice::Checkout: ${{ inputs.repository }} using ${{ inputs.ref }}"
echo "ref-exists=true" >> $GITHUB_OUTPUT
else
echo "::notice::Checkout: ${{ inputs.repository }} does not have ref ${{ inputs.ref }} (fallback to ${{ inputs.alternate_ref }})"
echo "ref-exists=false" >> $GITHUB_OUTPUT
fi

- if: steps.repo.outputs.ref-exists == 'true'
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846
with:
fetch-depth: ${{ inputs.fetch-depth }}
path: ${{ inputs.path }}
repository: ${{ inputs.repository }}
ref: ${{ inputs.ref }}
token: ${{ inputs.token }}

- if: steps.repo.outputs.ref-exists == 'false'
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846
with:
fetch-depth: ${{ inputs.fetch-depth }}
path: ${{ inputs.path }}
repository: ${{ inputs.alternate_repository }}
ref: ${{ inputs.alternate_ref }}
token: ${{ inputs.token }}
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: npm
directory: "/"
schedule:
interval: daily
4 changes: 2 additions & 2 deletions .github/workflows/generate_and_push_deriv_charts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
steps:
- name: Setup node and npm
id: step1
uses: actions/setup-node@v2
uses: actions/setup-node@9ced9a43a244f3ac94f13bfd896db8c8f30da67a
with:
node-version: '18'
check-latest: true
Expand All @@ -18,7 +18,7 @@ jobs:
NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
- name: Checkout repo
id: step2
uses: actions/checkout@v3
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846
with:
fetch-depth: 1
ref: master
Expand Down
129 changes: 129 additions & 0 deletions .github/workflows/generate_preview_link.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
name: Generate preview link

on:
pull_request_target:
types: [opened, synchronize]

env:
HEAD_REF: ${{ github.head_ref }}

concurrency:
group: cloudflare-pages-build-"$HEAD_REF"
cancel-in-progress: true

jobs:
build_and_deploy_preview_link:
if: github.event.pull_request.user.login == 'ahmadtaimoor-deriv'
runs-on: Ubuntu-latest
permissions:
checks: write
pull-requests: write
steps:
# - name: Verify user
# uses: "deriv-com/shared-actions/.github/actions/verify_user_in_organization@v1"
# with:
# username: ${{github.event.pull_request.user.login}}
# token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- name: Post preview build comment
id: post_preview_build_comment
uses: 'deriv-com/shared-actions/.github/actions/post_preview_build_comment@v1'
with:
issue_number: ${{github.event.number}}
head_sha: ${{github.event.pull_request.head.sha}}

- name: Checkout SmartCharts
uses: 'ahmadtaimoor-deriv/SmartCharts/.github/actions/checkout@master'
with:
repository: ${{github.event.pull_request.user.login}}/SmartCharts
path: SmartCharts
ref: ${{github.head_ref}}
alternate_repository: 'binary-com/SmartCharts'
alternate_ref: master

- name: Checkout deriv-app
uses: 'ahmadtaimoor-deriv/SmartCharts/.github/actions/checkout@master'
with:
repository: ${{github.event.pull_request.user.login}}/deriv-app
path: deriv-app
ref: ${{github.head_ref}}
alternate_repository: 'binary-com/deriv-app'
alternate_ref: master

- name: Custom flutter-chart
uses: 'ahmadtaimoor-deriv/SmartCharts/.github/actions/checkout@master'
with:
repository: ${{github.event.pull_request.user.login}}/flutter-chartz
path: flutter-chart
ref: ${{github.head_ref}}
alternate_repository: 'regentmarkets/flutter-chart'
alternate_ref: fe-changes
token: ${{ secrets.REPO_READ_TOKEN }}

- uses: subosito/flutter-action@v2
with:
flutter-version: '3.10.6'
channel: 'stable'
cache: true

- name: Add SSH key
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SSH_KEY }}" > ~/.ssh/github_action_key
chmod 600 ~/.ssh/github_action_key

- name: Build flutter
env:
GIT_SSH_COMMAND: 'ssh -i ~/.ssh/github_action_key'
run: |
cd SmartCharts/chart_app
flutter pub get
flutter build web --web-renderer html --release

- name: Setup Node
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8
with:
node-version: 18.x

- name: Setup deriv-app
run: cd deriv-app && npm install && npm run bootstrap

- name: Remove @deriv-charts in deriv-app
run: rm -rf deriv-app/node_modules/@deriv/deriv-charts/dist

- name: Setup SmartCharts
run: cd SmartCharts && npm install

- name: Build SmartCharts
run: cd SmartCharts && npm run build -- --output-path ../deriv-app/node_modules/@deriv/deriv-charts/dist

- name: Run Tests
run: cd SmartCharts && npm run test

- name: Build deriv-app
env:
NODE_ENV: 'production'
run: cd deriv-app && npm run build:all

- name: Setup Node
uses: actions/setup-node@9ced9a43a244f3ac94f13bfd896db8c8f30da67a
with:
node-version: 20

- name: Publish to CF pages branch
id: publish_to_pages_branch
uses: 'deriv-com/shared-actions/.github/actions/publish_to_pages_branch@v1'
with:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_TEST_LINKS_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_TEST_LINKS_ACCOUNT_ID }}
project_name: 'smartcharts-preview'
branch_name: 'pr-${{github.event.number}}'
output_dir: deriv-app/packages/core/dist

- name: 'Generate preview link comment'
if: always() && steps.post_preview_build_comment.outcome == 'success'
uses: 'deriv-com/shared-actions/.github/actions/post_preview_link_comment@v1'
with:
issue_number: ${{github.event.number}}
check_run_id: ${{steps.post_preview_build_comment.outputs.check_run_id}}
preview_url: ${{steps.publish_to_pages_branch.outputs.cf_pages_url}}
status: ${{job.status}}
54 changes: 0 additions & 54 deletions .github/workflows/release-automation.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/tag-release.yml

This file was deleted.

Loading
Loading