Skip to content

Commit

Permalink
Starts the emqx and mongo services on js-sdk workflow job (dapr#6423)
Browse files Browse the repository at this point in the history
* Starts the emqx and mongo services on js-sdk workflow job

Signed-off-by: joshvanl <[email protected]>

* Fix cd to correct directory

Signed-off-by: joshvanl <[email protected]>

---------

Signed-off-by: joshvanl <[email protected]>
Co-authored-by: Artur Souza <[email protected]>
  • Loading branch information
JoshVanL and artursouza authored May 31, 2023
1 parent 5ed0709 commit 054df8c
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/dapr-test-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,19 @@ jobs:
runs-on: ubuntu-latest
env:
NODE_VER: 18
services:
emqx:
image: emqx/emqx
ports:
- 1883:1883
- 8081:8081
- 8083:8083
- 8883:8883
- 18083:18083
mongodb:
image: mongo
ports:
- 27017:27017
steps:
- name: Set up for scheduled test
if: github.event_name != 'repository_dispatch'
Expand Down Expand Up @@ -412,15 +425,15 @@ jobs:
- name: Override placement service
run: |
docker stop dapr_placement
./dist/linux_amd64/release/placement --healthz-port 9091 &
./dist/linux_amd64/release/placement &
- name: Build Package
run: cd js-sdk && npm run build
- name: Run E2E tests
id: tests
run: cd js-sdk && npm run test:e2e:all
- name: Run E2E test to show successful TypeScript build
run: |
cd js-sdk test/e2e/typescript-build
cd js-sdk/test/e2e/typescript-build
npm install
dapr run --app-id typescript-build npm run start
- name: Update PR comment for success
Expand Down

0 comments on commit 054df8c

Please sign in to comment.