diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml new file mode 100644 index 0000000..5f45bdd --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,33 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven + +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +name: Java CI with Maven + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B compiler:compile + - name: Run Unit Tests + run: mvn -B test diff --git a/.gitignore b/.gitignore index 18f95fc..d57f5c3 100644 --- a/.gitignore +++ b/.gitignore @@ -4,7 +4,6 @@ HELP.md target/ !.mvn/wrapper/maven-wrapper.jar !**/src/main/** -!**/src/test/** .DS_Store ### STS ### @@ -34,6 +33,6 @@ build/ .vscode/ ### application.properties ### -**/src/main/recources/application-dev.properties systemContext.json /.apt_generated_tests/ +src/test/resources/application-dev.properties diff --git a/README.md b/README.md index 93d0613..a755d29 100644 --- a/README.md +++ b/README.md @@ -11,4 +11,18 @@ creates context map, bounded contexts and communication diagrams. ```bash mvn clean install mvn package -``` \ No newline at end of file +``` + +## ProphetUtilsTest Setup +* Running Unit tests requires that you clone this repo to get the microservices (https://github.com/cloudhubs/tms) +* create a file called **application-dev.properties** in src/test/resources/ +* In src/test/resources/application-dev.properties change the `user.rootPath` property to the path to **tms** repo + * Example: + * user.rootPath=/Users/austinblanchard/Documents/CSI_43C9/microservices/tms/ +* Then add the `user.umsPath`, `user.qmsPath`, `user.cmsPath`, `user.emsPath` properties to each microservice + * Example: + * user.umsPath=ums/ + * user.qmsPath=qms/ + * user.cmsPath=cms/ + * user.emsPath=ems/ +* This will properly point the JUnit tests with the proper microservices diff --git a/bounded-context.html b/bounded-context.html index b4dce76..22d2658 100644 --- a/bounded-context.html +++ b/bounded-context.html @@ -14,33 +14,7 @@