-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 1014 Bytes
/
surefire-reports.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# This is a custom workflow to call checkstyle on Java code.
name: Publish Surefire Reports
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the maste$
push:
branches: [ master ]
pull_request:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in$
jobs:
build:
name: Run Tests
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v1
- uses: actions/setup-java@v2
with:
distribution: 'adopt' # See 'Supported distributions' for available options
java-version: '11'
- name: Run Tests
run: mvn test --batch-mode --fail-at-end
- name: Publish Test Report
if: ${{ always() }}
uses: scacap/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}