Skip to content

Commit

Permalink
chore: add test job
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffTabiri authored Mar 27, 2024
1 parent 130f6ff commit 9431d1d
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,15 @@ on:
#branches: [ "develop" ]

jobs:

#Job for building the application".
build:

#The type of container the application will run in.
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed asa part of the job
steps:
- name: Step 1 - Checkout the main branches from Github
- uses: actions/checkout@v3

# Configure the eclipse temurin JDK for the ubuntu runner.
# Caches dependency in maven pom file. Speeds up workflow.
uses: actions/checkout@v3

- name: Step 2 - Set up JDK 21
uses: actions/setup-java@v3
with:
Expand All @@ -30,3 +25,20 @@ jobs:

- name: Step 3 - Build and test with Maven
run: mvn -B package --file pom.xml

test:
runs-on: ubuntu-latest
steps:
- name: Step 1 - Checkout the main branches from Github
uses: actions/checkout@v3

- name: Step 2 - Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'
cache: maven

- name: Step 3 - Run tests with Maven
run: mvn test

0 comments on commit 9431d1d

Please sign in to comment.