-
Notifications
You must be signed in to change notification settings - Fork 2.9k
83 lines (72 loc) · 2.32 KB
/
java11_unit_tests.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: Java 11 Unit Tests
on: [pull_request]
jobs:
build:
name: "Test modules: "
strategy:
fail-fast: false
matrix:
modules:
- >-
!alluxio.master.metastore.rocks.**
- >-
alluxio.master.metastore.rocks.**
runs-on: ubuntu-latest
steps:
- name: checkout repo
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: '10.11.0'
- 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: Run tests
continue-on-error: true
id: test0
run: |
mkdir -p ~/.m2
ALLUXIO_DOCKER_NO_TTY=true \
ALLUXIO_DOCKER_GIT_CLEAN=true \
ALLUXIO_DOCKER_MVN_RUNTOEND=true \
ALLUXIO_DOCKER_IMAGE=alluxio/alluxio-maven:0.0.5-jdk11 \
dev/github/run_docker.sh "\"-Dtest=${{ matrix.modules }}\"" -pl '!tests'
timeout-minutes: 60
- name: Run tests (Retry 1)
continue-on-error: true
id: test1
if: steps.test0.outcome == 'failure'
run: |
mkdir -p ~/.m2
ALLUXIO_DOCKER_NO_TTY=true \
ALLUXIO_DOCKER_GIT_CLEAN=true \
ALLUXIO_DOCKER_MVN_RUNTOEND=true \
ALLUXIO_DOCKER_IMAGE=alluxio/alluxio-maven:0.0.5-jdk11 \
dev/github/run_docker.sh "\"-Dtest=${{ matrix.modules }}\"" -pl '!tests'
timeout-minutes: 60
- name: Run tests (Retry 2)
id: test2
if: steps.test1.outcome == 'failure'
run: |
mkdir -p ~/.m2
ALLUXIO_DOCKER_NO_TTY=true \
ALLUXIO_DOCKER_GIT_CLEAN=true \
ALLUXIO_DOCKER_MVN_RUNTOEND=true \
ALLUXIO_DOCKER_IMAGE=alluxio/alluxio-maven:0.0.5-jdk11 \
dev/github/run_docker.sh "\"-Dtest=${{ matrix.modules }}\"" -pl '!tests'
timeout-minutes: 60
- name: Archive artifacts
continue-on-error: true
uses: actions/upload-artifact@v2
if: always()
with:
name: artifact
path: |
**/target/artifacts/*
**/target/logs/*
log*