Skip to content

Commit

Permalink
chore: test
Browse files Browse the repository at this point in the history
  • Loading branch information
heorhi-deriv committed Dec 10, 2024
1 parent e6f9031 commit dff57b0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/analyze/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ runs:
TRUSTPILOT_API_KEY: ${{ inputs.TRUSTPILOT_API_KEY }}
NODE_OPTIONS: "--max_old_space_size=4096"
shell: bash
run: npm run build:prod && npm run analyze:stats && npm run analyze:build
run: npm run build:prod-analyze && npm run analyze:stats && npm run analyze:build

- name: Compare report to master
id: diff
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ jobs:
uses: "./.github/actions/setup_node"
- name: Install dependencies
uses: "./.github/actions/npm_install_from_cache"
- name: Restore NX cache
uses: actions/cache/restore@v4
id: cache-nx
with:
path: .nx
key: nx-cache-${{ hashFiles('nx.json', 'package-lock.json', 'packages/*/package.json') }}
- name: Analyze
uses: "./.github/actions/analyze"
with:
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
"build:local": "f () { nx run-many --target=build --projects=@deriv/bot-web-ui,@deriv/trader --parallel=2 ;}; f",
"build:travis": "nx run-many --projects=@deriv/shared,@deriv/components,@deriv/translations,@deriv/cashier,@deriv/account,@deriv/p2p,@deriv/cfd,@deriv/reports --target=build:travis",
"build:prod": "export NODE_ENV=staging && npm run build:all && export NODE_ENV=",
"build:prod-analyze": "export NODE_ENV=staging && npm run build:all-cache && export NODE_ENV=",
"build:storybook": "cd packages/components && sb build --output-dir .out",
"build:gh-pages": "f () { nx run-many --target=build --projects=@deriv/components,@deriv/p2p && nx run-many --target=build --projects=@deriv/cashier,@deriv/account,@deriv/cfd,@deriv/reports && npm run build:local $1 ;}; f",
"check-imports": "node ./scripts/check-imports.js",
Expand Down

0 comments on commit dff57b0

Please sign in to comment.