Skip to content

Commit

Permalink
Merge pull request #8 from muzzammilshahid/run-routers-in-ci
Browse files Browse the repository at this point in the history
Run routers in CI
  • Loading branch information
muzzammilshahid authored Jan 13, 2025
2 parents 2f60008 + a69d8c5 commit a7e6ca1
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,20 @@ jobs:
- name: Build crossbar docker
run: make build-docker-crossbar

- name: Run crossbar
run: make run-docker-crossbar &

- name: Build xconn docker
run: make build-docker-xconn

- name: Run xconn
run: make run-docker-xconn &

- name: Install wick
run: sudo snap install wick --classic

- name: Test crossbar
run: make run-wick-commands url=ws://localhost:8081/ws

- name: Test xconn
run: make run-wick-commands url=ws://localhost:8080/ws
11 changes: 9 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,17 @@ build-docker-crossbar:
docker build -t crossbar-image -f Dockerfile.crossbar .

run-docker-crossbar:
docker-compose -f docker-compose.yml run --rm crossbar
docker compose -f docker-compose.yml run --rm crossbar

build-docker-xconn:
docker build -f Dockerfile.xconn -t xconn-image .

run-docker-xconn:
docker-compose -f docker-compose.yml run --rm xconn
docker compose -f docker-compose.yml run --rm xconn

run-wick-commands:
wick call io.xconn.backend.add2 2 4 --url "$(url)"
wick call io.xconn.backend.add2 2 4 --url "$(url)" --authid cryptosign-user --private-key 150085398329d255ad69e82bf47ced397bcec5b8fbeecd28a80edbbd85b49081
wick call io.xconn.backend.add2 2 4 --url "$(url)" --ticket ticket-pass --authid ticket-user
wick call io.xconn.backend.add2 2 4 --url "$(url)" --authid wamp-cra-user --secret cra-secret
wick call io.xconn.backend.add2 2 4 --authid wamp-cra-salt-user --secret cra-salt-secret

0 comments on commit a7e6ca1

Please sign in to comment.