forked from binary-com/deriv-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
205 additions
and
199 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,41 @@ | ||
name: Analyse Bundle | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
push: | ||
branches: | ||
- master | ||
# name: Analyse Bundle | ||
# on: | ||
# pull_request: | ||
# branches: | ||
# - master | ||
# push: | ||
# branches: | ||
# - master | ||
|
||
jobs: | ||
build_and_test: | ||
name: Analyze Bundle | ||
runs-on: Runner_16cores_Deriv-app | ||
environment: Preview | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | ||
- name: Setup Node | ||
uses: "./.github/actions/setup_node" | ||
- name: Install dependencies | ||
uses: "./.github/actions/npm_install_from_cache" | ||
- name: Analyze | ||
uses: "./.github/actions/analyze" | ||
with: | ||
NODE_ENV: production | ||
CROWDIN_WALLETS_API_KEY: ${{ secrets.CROWDIN_WALLETS_API_KEY }} | ||
DATADOG_APPLICATION_ID: ${{ vars.DATADOG_APPLICATION_ID }} | ||
IS_GROWTHBOOK_ENABLED: ${{ vars.IS_GROWTHBOOK_ENABLED }} | ||
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_KEY: ${{ vars.RUDDERSTACK_KEY }} | ||
GROWTHBOOK_CLIENT_KEY: ${{ vars.GROWTHBOOK_CLIENT_KEY }} | ||
GROWTHBOOK_DECRYPTION_KEY: ${{ vars.GROWTHBOOK_DECRYPTION_KEY }} | ||
REF_NAME: ${{ github.ref_name }} | ||
REMOTE_CONFIG_URL: ${{ vars.REMOTE_CONFIG_URL }} | ||
# jobs: | ||
# build_and_test: | ||
# name: Analyze Bundle | ||
# runs-on: Runner_16cores_Deriv-app | ||
# environment: Preview | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | ||
# - name: Setup Node | ||
# uses: "./.github/actions/setup_node" | ||
# - name: Install dependencies | ||
# uses: "./.github/actions/npm_install_from_cache" | ||
# - name: Analyze | ||
# uses: "./.github/actions/analyze" | ||
# with: | ||
# NODE_ENV: production | ||
# CROWDIN_WALLETS_API_KEY: ${{ secrets.CROWDIN_WALLETS_API_KEY }} | ||
# DATADOG_APPLICATION_ID: ${{ vars.DATADOG_APPLICATION_ID }} | ||
# IS_GROWTHBOOK_ENABLED: ${{ vars.IS_GROWTHBOOK_ENABLED }} | ||
# 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_KEY: ${{ vars.RUDDERSTACK_KEY }} | ||
# GROWTHBOOK_CLIENT_KEY: ${{ vars.GROWTHBOOK_CLIENT_KEY }} | ||
# GROWTHBOOK_DECRYPTION_KEY: ${{ vars.GROWTHBOOK_DECRYPTION_KEY }} | ||
# REF_NAME: ${{ github.ref_name }} | ||
# REMOTE_CONFIG_URL: ${{ vars.REMOTE_CONFIG_URL }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
types: [opened, synchronize, edited] | ||
name: Coveralls | ||
jobs: | ||
build: | ||
name: Reporter | ||
runs-on: Runner_8cores_Deriv-app | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | ||
- name: Setup Node | ||
uses: './.github/actions/setup_node' | ||
- name: Install dependencies | ||
uses: "./.github/actions/npm_install_from_cache" | ||
- name: Build | ||
uses: "./.github/actions/build" | ||
- name: Test | ||
run: JEST_MAX_WORKERS=95% npm run test:jest -- --collectCoverage | ||
- name: Coveralls | ||
uses: coverallsapp/github-action@3dfc5567390f6fa9267c0ee9c251e4c8c3f18949 | ||
# on: | ||
# push: | ||
# branches: | ||
# - master | ||
# pull_request: | ||
# types: [opened, synchronize, edited] | ||
# name: Coveralls | ||
# jobs: | ||
# build: | ||
# name: Reporter | ||
# runs-on: Runner_8cores_Deriv-app | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | ||
# - name: Setup Node | ||
# uses: './.github/actions/setup_node' | ||
# - name: Install dependencies | ||
# uses: "./.github/actions/npm_install_from_cache" | ||
# - name: Build | ||
# uses: "./.github/actions/build" | ||
# - name: Test | ||
# run: JEST_MAX_WORKERS=95% npm run test:jest -- --collectCoverage | ||
# - name: Coveralls | ||
# uses: coverallsapp/github-action@3dfc5567390f6fa9267c0ee9c251e4c8c3f18949 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
name: Deriv App Integration Test Workflow | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
push: | ||
branches: | ||
- master | ||
jobs: | ||
integration_tests: | ||
name: Run Integration Tests | ||
runs-on: Runner_8cores_Deriv-app | ||
environment: Preview | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | ||
- name: Setup Node | ||
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 | ||
run: npm run build:all | ||
- name: Install Playwright Browsers | ||
run: npx playwright install | ||
- name: Run component tests | ||
run: npm run test:component | ||
# name: Deriv App Integration Test Workflow | ||
# on: | ||
# pull_request: | ||
# branches: | ||
# - master | ||
# push: | ||
# branches: | ||
# - master | ||
# jobs: | ||
# integration_tests: | ||
# name: Run Integration Tests | ||
# runs-on: Runner_8cores_Deriv-app | ||
# environment: Preview | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | ||
# - name: Setup Node | ||
# 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 | ||
# run: npm run build:all | ||
# - name: Install Playwright Browsers | ||
# run: npx playwright install | ||
# - name: Run component tests | ||
# run: npm run test:component |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,45 @@ | ||
name: Deriv App Release to Test environment Workflow | ||
on: | ||
push: | ||
branches: | ||
- master | ||
# name: Deriv App Release to Test environment Workflow | ||
# on: | ||
# push: | ||
# branches: | ||
# - master | ||
|
||
jobs: | ||
build_test_and_publish: | ||
name: Build, Test and Publish to Cloudflare Test | ||
runs-on: Runner_8cores_Deriv-app | ||
environment: Staging | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | ||
- 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: production | ||
CROWDIN_WALLETS_API_KEY: ${{ secrets.CROWDIN_WALLETS_API_KEY }} | ||
DATADOG_APPLICATION_ID: ${{ vars.DATADOG_APPLICATION_ID }} | ||
IS_GROWTHBOOK_ENABLED: ${{ vars.IS_GROWTHBOOK_ENABLED }} | ||
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_KEY: ${{ vars.RUDDERSTACK_KEY }} | ||
GROWTHBOOK_CLIENT_KEY: ${{ vars.GROWTHBOOK_CLIENT_KEY }} | ||
GROWTHBOOK_DECRYPTION_KEY: ${{ vars.GROWTHBOOK_DECRYPTION_KEY }} | ||
REF_NAME: ${{ github.ref_name }} | ||
REMOTE_CONFIG_URL: ${{ vars.REMOTE_CONFIG_URL }} | ||
- name: Run tests | ||
run: npm test | ||
- name: Publish to Cloudflare Pages Test | ||
uses: "./.github/actions/publish_to_pages_test" | ||
with: | ||
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | ||
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | ||
# jobs: | ||
# build_test_and_publish: | ||
# name: Build, Test and Publish to Cloudflare Test | ||
# runs-on: Runner_8cores_Deriv-app | ||
# environment: Staging | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | ||
# - 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: production | ||
# CROWDIN_WALLETS_API_KEY: ${{ secrets.CROWDIN_WALLETS_API_KEY }} | ||
# DATADOG_APPLICATION_ID: ${{ vars.DATADOG_APPLICATION_ID }} | ||
# IS_GROWTHBOOK_ENABLED: ${{ vars.IS_GROWTHBOOK_ENABLED }} | ||
# 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_KEY: ${{ vars.RUDDERSTACK_KEY }} | ||
# GROWTHBOOK_CLIENT_KEY: ${{ vars.GROWTHBOOK_CLIENT_KEY }} | ||
# GROWTHBOOK_DECRYPTION_KEY: ${{ vars.GROWTHBOOK_DECRYPTION_KEY }} | ||
# REF_NAME: ${{ github.ref_name }} | ||
# REMOTE_CONFIG_URL: ${{ vars.REMOTE_CONFIG_URL }} | ||
# - name: Run tests | ||
# run: npm test | ||
# - name: Publish to Cloudflare Pages Test | ||
# uses: "./.github/actions/publish_to_pages_test" | ||
# with: | ||
# CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | ||
# CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} |
Oops, something went wrong.