Merge pull request #18 from ThomasRubini/ci_tests
This commit is contained in:
		
						commit
						08d815cd05
					
				| @ -1,4 +1,4 @@ | |||||||
| name: Build | name: CI | ||||||
| 
 | 
 | ||||||
| on: | on: | ||||||
|   push: |   push: | ||||||
| @ -19,12 +19,29 @@ jobs: | |||||||
|       with: |       with: | ||||||
|         distribution: 'temurin' |         distribution: 'temurin' | ||||||
|         java-version: 17 |         java-version: 17 | ||||||
|      | 
 | ||||||
|     - name: Build |     - name: Build | ||||||
|       run: | |       run: | | ||||||
|         ./gradlew jar |         ./gradlew jar | ||||||
|          | 
 | ||||||
|     - uses: actions/upload-artifact@v3 |     - uses: actions/upload-artifact@v3 | ||||||
|       with: |       with: | ||||||
|         name: PackageViewer jar |         name: PackageViewer jar | ||||||
|         path: ./build/libs/PackageViewer*.jar |         path: ./build/libs/PackageViewer*.jar | ||||||
|  | 
 | ||||||
|  |   test: | ||||||
|  |     name: Test | ||||||
|  |     runs-on: ubuntu-latest | ||||||
|  | 
 | ||||||
|  |     steps: | ||||||
|  |     - name: Checkout | ||||||
|  |       uses: actions/checkout@v3 | ||||||
|  | 
 | ||||||
|  |     - uses: actions/setup-java@v3 | ||||||
|  |       with: | ||||||
|  |         distribution: 'temurin' | ||||||
|  |         java-version: 17 | ||||||
|  | 
 | ||||||
|  |     - name: Run testsClassDiagram1 | ||||||
|  |       run: | | ||||||
|  |         ./gradlew test | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user