-
Notifications
You must be signed in to change notification settings - Fork 23
43 lines (37 loc) · 859 Bytes
/
test.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
34
35
36
37
38
39
40
41
42
43
name: Test
on:
push:
branches:
- master
paths-ignore:
- '**/*.md'
- '**/*.ipynb'
- '.gitignore'
pull_request:
branches:
- master
paths-ignore:
- '**/*.md'
- '**/*.ipynb'
- '.gitignore'
jobs:
build:
name: Run all of test cases
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'
cache: maven
- name: Cache Maven target
uses: actions/cache@v2
with:
path: '**/target'
key: maven-target-${{ runner.os }}-${{ github.sha }}
restore-keys: maven-target-${{ runner.os }}-
- name: Test with Maven
run: mvn clean install -T 1C