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 9, 2024
1 parent 3399701 commit 8f28719
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
REMOTE_CONFIG_URL: ${{ vars.REMOTE_CONFIG_URL }}
TRUSTPILOT_API_KEY: ${{ secrets.TRUSTPILOT_API_KEY }}
- name: Run tests
run: npm test
run: npm test:ci
- name: Publish to Cloudflare Pages Test
uses: "./.github/actions/publish_to_pages_test"
with:
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,14 @@ jobs:
# - name: Invalidate NPM Cache
# if: github.event_name == 'push' && github.ref == 'refs/heads/master'
# uses: "./.github/actions/invalidate_npm_cache"
- name: Build
- name: Cache Nx Build Cache
id: cache-nx
uses: actions/cache@v4
with:
path: nx/cache
key: nx-cache-${{ hashFiles('nx.json', 'package-lock.json', 'packages/*/package.json') }}
- if: ${{ steps.cache-nx.outputs.cache-hit != 'true' }}
name: Build
uses: "./.github/actions/build"
- name: Check TypeScript for @deriv/api
run: npx tsc --project packages/api/tsconfig.json -noEmit
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@
"publish_package": "f () { npm exec --workspace=@deriv/${1:-'*'} -- npm run publish_package $2 ;}; f",
"serve": "f () { npm exec --workspace=@deriv/${1:-'*'} -- npm run serve $npm_config_open;}; f",
"start": "f () { npm exec --workspace=@deriv/${1:-'*'} -- npm run start ;}; f",
"test": "f () { npm run test:stylelint && npm run test:eslint-all && npm run test:jest ;}; f",
"test": "f () { npm run test:stylelint && npm run test:eslint-all && npm run test:jest ;}; f",
"test:stylelint": "stylelint \"./packages/*/src/**/*.s(a|c)ss\"",
"test:ci": "f () { npm run test:stylelint && npm run test:eslint-all ;}; f",
"test:ci": "f () { npm run test:stylelint && npm run test:eslint-all ;}; f",
"test:shard": "jest --all --shard=${SHARD_INDEX}/${SHARD_COUNT} --maxWorkers=${JEST_MAX_WORKERS:-'50%'}",
"test:jest": "jest --all --maxWorkers=${JEST_MAX_WORKERS:-'50%'}",
"test:performance": "cd e2e-tests && jest -c ./jest.config.js --detectOpenHandles performance",
Expand Down

0 comments on commit 8f28719

Please sign in to comment.