Skip to content

Commit

Permalink
feat(apps-backend): add e2e tests to CI for testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
panteleymonchuk committed Oct 29, 2024
1 parent 7b3f802 commit 3f1e45c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/_e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ on:
isGraphQlTransport:
type: boolean
required: true
isAppsBackend:
type: boolean
required: true
isDevelop:
type: boolean
required: true
Expand Down Expand Up @@ -69,7 +72,9 @@ jobs:
- name: Run TS SDK e2e tests
if: inputs.isTypescriptSDK || inputs.isRust || inputs.isDevelop
run: pnpm dlx concurrently --kill-others --success command-1 "$E2E_RUN_LOCAL_NET_CMD" 'pnpm --filter @iota/iota-sdk test:e2e'

- name: Run Apps Backend e2e tests
if: inputs.isAppsBackend
run: pnpm --filter apps-backend test:e2e
- name: Run RPC/GraphQL compatibility e2e tests
if: inputs.isGraphQlTransport || inputs.isRust || inputs.isDevelop
run: pnpm dlx concurrently --kill-others --success command-1 "$E2E_RUN_LOCAL_NET_CMD" 'pnpm --filter @iota/graphql-transport test:e2e'
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/hierarchy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ jobs:
isRust: ${{ needs.diff.outputs.isRust == 'true' }}

e2e:
if: (!cancelled() && !failure() && (!github.event.pull_request.draft || github.ref_name == 'develop'))
if: (!cancelled() && !failure() && (github.event.pull_request.draft || github.ref_name == 'develop'))
needs:
- diff
- dprint-format
Expand All @@ -147,6 +147,7 @@ jobs:
isExplorer: ${{ needs.diff.outputs.isExplorer == 'true' }}
isTypescriptSDK: ${{ needs.diff.outputs.isTypescriptSDK == 'true' }}
isGraphQlTransport: ${{ needs.diff.outputs.isGraphQlTransport == 'true' }}
isAppsBackend: ${{ needs.diff.outputs.isAppsBackend == 'true' }}
isDevelop: ${{ github.ref_name == 'develop' }}

vercel-deploy:
Expand Down

0 comments on commit 3f1e45c

Please sign in to comment.