Skip to content

Commit

Permalink
Create test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jmillanacosta authored Jan 22, 2025
1 parent 93e410e commit 218003e
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: run-tests

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

jobs:
test:

runs-on: ubuntu-latest
strategy:
matrix:
java: [ '11', '17' ]

steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
cache: 'maven'
- name: Run Tests with Maven
run: mvn test

- name: Upload Test Results
if: always()
uses: actions/upload-artifact@v3
with:
name: test-results-${{ matrix.java }}
path: target/surefire-reports/*.xml

0 comments on commit 218003e

Please sign in to comment.