forked from OpenRoberta/openroberta-lab
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (29 loc) · 814 Bytes
/
unit_test.yml
File metadata and controls
31 lines (29 loc) · 814 Bytes
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
name: UnitTest
on:
pull_request:
branches: [ develop ]
push:
branches: [ develop ]
paths-ignore:
- '.github/**'
- 'Docker/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout branch ${{ github.ref }} of repo ${{ github.repository }}
uses: actions/checkout@v2
- name: Setup Java JDK
uses: actions/setup-java@v2.1.0
with:
java-version: '11'
distribution: 'adopt'
- name: Cache local maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build with maven and run unit tests
run: mvn --batch-mode clean install