Skip to content

Commit 3a711ee

Browse files
committed
added steps to get version and post login after DB seeding
1 parent 149627c commit 3a711ee

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/maven.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
2-
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
3-
4-
# This workflow uses actions that are not certified by GitHub.
5-
# They are provided by a third-party and are governed by
6-
# separate terms of service, privacy policy, and support
7-
# documentation.
8-
91
name: Java CI with Maven
102

113
on:
@@ -49,6 +41,15 @@ jobs:
4941
- name: Create and Seed Database
5042
run: docker compose -f docker-compose-toolshop.yml exec laravel-api php artisan migrate:fresh --seed
5143

44+
- name: GET Version
45+
run: curl -v -X GET 'http://localhost:8091/status'
46+
47+
- name: POST login
48+
run: |
49+
curl -v -X POST 'http://localhost:8091/users/login' \
50+
-H 'Content-Type: application/json' \
51+
--data-raw '{"email":"customer@practicesoftwaretesting.com","password":"welcome01"}'
52+
5253
- name: Build Project and run tests
5354
run: mvn clean install
5455

0 commit comments

Comments
 (0)