Skip to content

Commit ce3884d

Browse files
Add Maven Workflow fir GitHub Actions (#10)
* enabled maven workflow and added docker compose command to create db/schema for practice testing website before running tests * updated docker compose command for seeding db * updated docker compose command in workflow * updated maven workflow to sleep for 60s before running the create and seed db command * added working directory for create and seed db command
1 parent 429019e commit ce3884d

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.github/workflows/disabled_maven.yml renamed to .github/workflows/maven.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,16 @@ jobs:
5454

5555
- name: Start Practice Software Testing with Docker Compose
5656
working-directory: practice-repo
57-
run: docker compose up -d
57+
run: docker compose -f docker-compose.yml up -d
58+
59+
- name: Sleep for 60 seconds
60+
run: sleep 60s
61+
shell: bash
62+
63+
- name: Create and Seed Database
64+
working-directory: practice-repo
65+
run: |
66+
docker compose exec laravel-api php artisan migrate:fresh --seed
5867
5968
- name: Install Chrome
6069
uses: browser-actions/setup-chrome@latest

src/test/java/io/github/mfaisalkhatri/test/JsonDataProviderTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ public Iterator<RegistrationData> getValidRegistrationData () {
3131

3232
@Test (dataProvider = "getValidRegistrationData")
3333
public void testRegistrationPasswordAlert (final RegistrationData registrationData) {
34-
//this.driver.get ("http://localhost:4200/");
35-
this.driver.get ("https://practicesoftwaretesting.com/auth/register");
34+
this.driver.get ("http://localhost:4200/");
35+
//this.driver.get ("https://practicesoftwaretesting.com/auth/register");
3636

3737
HomePage homePage = new HomePage (driver);
3838
LoginPage loginPage = homePage.navigateToLoginPage ();

0 commit comments

Comments
 (0)