diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..5f22d3c9 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +name: Java CI + +on: + workflow_dispatch: + push: + branches: + - main + - junit-lab + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'adopt' + + - name: Build with Maven + run: mvn clean install + + - name: Run JUnit tests + run: mvn test diff --git a/junit5-jupiter-starter-maven/pom-SNAPSHOT.xml b/junit5-jupiter-starter-maven/pom-SNAPSHOT.xml index 82e2239f..9e86418e 100644 --- a/junit5-jupiter-starter-maven/pom-SNAPSHOT.xml +++ b/junit5-jupiter-starter-maven/pom-SNAPSHOT.xml @@ -18,7 +18,7 @@ org.junit junit-bom - 5.12.0-SNAPSHOT + 5.11.2 pom import