Skip to content

Commit

Permalink
Update JavaCIwithMaven.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
aisabel committed Jul 4, 2023
1 parent 3a9c112 commit 7a2fa3a
Showing 1 changed file with 27 additions and 14 deletions.
41 changes: 27 additions & 14 deletions .github/workflows/JavaCIwithMaven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,31 +27,44 @@ jobs:
distribution: 'zulu'
cache: maven

- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

# Make directory to upload the test results
- name: Make Directory for results
run: mkdir -p testResults

- name: Build with Maven
run: mvn --batch-mode --update-snapshots package
run: mvn -q -B -DskipTests package --file pom.xml

#Run test
- name: Run E2E Tests
run: mvn -q -B test -Dgroups="EndToEndTests"

# - name: Build with Maven
# run: mvn --batch-mode --update-snapshots package

- name: Run the Maven verify phase
run: mvn --batch-mode --update-snapshots verify
# - name: Run the Maven verify phase
# run: mvn --batch-mode --update-snapshots verify

- name: Install dependencies
run: mvn verify -B --file pom.xml
# - name: Install dependencies
# run: mvn verify -B --file pom.xml

# Make directory to upload the test results
- name: Make Directory for results
run: mkdir -p testResults


#Dependencies
#- name: Install dependencies
# run: mvn test -B -e package --file pom.xml

#Verify and run tests
- name: Verify and run
run: mvn test verify -Dcucumber.options="--tags @Test"

#Run test
- name: Run E2E Tests
run: mvn -q -B test -Dgroups="EndToEndTests"
#- name: Verify and run
# run: mvn test verify -Dcucumber.options="--tags @Test"


#Create and output results
#The reports land in actions tab > summary > Artifacts
- name: Output the run Details
Expand Down

0 comments on commit 7a2fa3a

Please sign in to comment.