Skip to content

Commit

Permalink
add: CI pipeline for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioscardace committed Jun 11, 2024
1 parent 64f1222 commit 33b34bb
Showing 1 changed file with 66 additions and 0 deletions.
66 changes: 66 additions & 0 deletions .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: CI for Testing

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:

#-------------------------------#
# Data-Manager Microservice #
#-------------------------------#

test_data_manager:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4

- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'corretto'
cache: maven

- name: Run Maven Tests
run: cd data-manager/ && mvn -B clean package

#-----------------------------------#
# Identity-Manager Microservice #
#-----------------------------------#

test_idm:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4

- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'corretto'
cache: maven

- name: Run Maven Tests
run: cd identity-manager/ && mvn -B clean package

#--------------------------#
# Monitor Microservice #
#--------------------------#

test_monitor:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4

- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'corretto'
cache: maven

- name: Run Maven Tests
run: cd monitor/ && mvn -B clean package -DskipTests

0 comments on commit 33b34bb

Please sign in to comment.