Add PR check using GitHub Actions
This commit is contained in:
parent
3c773a7188
commit
0c9c87e4e6
1 changed files with 24 additions and 0 deletions
24
.github/workflows/pr-check.yml
vendored
Normal file
24
.github/workflows/pr-check.yml
vendored
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
name: pr-check
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches: [ master ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build and test
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: adoptopenjdk/openjdk8:latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Build with Gradle
|
||||||
|
uses: gradle/gradle-build-action@v2
|
||||||
|
with:
|
||||||
|
arguments: build test
|
||||||
|
- name: Publish Test Report
|
||||||
|
uses: mikepenz/action-junit-report@v3
|
||||||
|
if: always()
|
||||||
|
with:
|
||||||
|
report_paths: '**/build/test-results/test/TEST-*.xml'
|
Loading…
Reference in a new issue