Skip to content

Commit

Permalink
chore: server test actions
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldietzler committed Jul 15, 2024
1 parent c5233ce commit 74f08eb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ jobs:
steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Run checkstyle
uses: dbelyaev/action-checkstyle@v1.14.0
with:
Expand All @@ -67,3 +68,5 @@ jobs:
workdir: ./server
checkstyle_config: ./server/checkstyle.xml
level: error
- name: Run unit tests
run: cd ./server && ./mvnw -Dtest='!de.uftos.e2e.**,!UftosApplicationTests' test
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
dev:
docker compose -f ./docker-compose.yml up
dev-update:
docker compose -f ./docker-compose.yml up --build -V
test:
cd ./server && ./mvnw -Dtest='!de.uftos.e2e.**,!UftosApplicationTests' test
test-stupid:
cd ./server && ./mvnw.cmd -Dtest='!de.uftos.e2e.**,!UftosApplicationTests' test
e2e:
cd ./server && DB_HOST=localhost DB_PORT=5432 DB_USER=uftos DB_PASSWORD=superSecurePassword DB_NAME=uftos ./mvnw -Dtest='de.uftos.e2e.**,UftosApplicationTests' test
e2e-stupid:
cd ./server DB_HOST=localhost DB_PORT=5432 DB_USER=uftos DB_PASSWORD=superSecurePassword DB_NAME=uftos ./mvnw.cmd -Dtest='de.uftos.e2e.**,UftosApplicationTests' test

0 comments on commit 74f08eb

Please sign in to comment.