Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
This-Is-Ko authored Oct 1, 2023
1 parent cc39cb8 commit 3770841
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Java

on:
push:
workflow_dispatch:

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v1

- name: Set up JDK 20
uses: actions/setup-java@v2
with:
java-version: '20'
distribution: 'adopt'

- name: Build
run: mvn --batch-mode -DskipTests package

- name: Test
run: mvn --batch-mode -Dmaven.test.failure.ignore=true test

- name: Report
uses: dorny/test-reporter@v1
if: always()
with:
name: Maven Tests
path: target/surefire-reports/*.xml
reporter: java-junit
fail-on-error: true

0 comments on commit 3770841

Please sign in to comment.