Skip to content

Commit

Permalink
Add test for backend to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
vaslabs committed Mar 26, 2021
1 parent d8dbf14 commit 29b8996
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/sanity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,7 @@ jobs:
run: npm install -g @angular/cli

- name: Generic (dev) build
run: make build
run: make build

- name: Test service
run: make test-backend
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ run: build

build: build_ui_dev build_service

test-backend:
cd service/web && go test ./test/ && cd -

build_ui_dev:
cd ui/pi-web-agent-app && npm i && ng build --base-href / && cd -
cp -r ui/pi-web-agent-app/dist/pi-web-agent-app service/web/assets/
Expand Down

0 comments on commit 29b8996

Please sign in to comment.