forked from pinpoint-apm/pinpoint
-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (67 loc) · 2.22 KB
/
it-schedule.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
name: it-schedule
on:
schedule:
- cron: '10 7 * * *'
jobs:
integration-test:
runs-on: ubuntu-20.04
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Cache node modules
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-modules-
- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Cache node install
uses: actions/cache@v3
with:
path: 'node_install'
key: ${{ runner.os }}-node_install-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-node_install-
- name: Cleanup resources
run: |
sudo rm -rf /usr/local/lib/android
sudo rm -rf /usr/share/dotnet
df -h
- name: Set up JDK 7
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 7
- name: Set JAVA_HOME
run: |
echo "JAVA_7_HOME=$JAVA_HOME" >> $GITHUB_ENV
echo "JAVA_8_HOME=$JAVA_HOME_8_X64" >> $GITHUB_ENV
echo "JAVA_11_HOME=$JAVA_HOME_11_X64" >> $GITHUB_ENV
echo "JAVA_HOME=$JAVA_HOME_8_X64" >> $GITHUB_ENV
- name: Java Environment
run: env | grep '^JAVA'
- name: Maven build
run: |
./mvnw --batch-mode -Pit-module -DskipTests clean install
- name: Integration Test
working-directory: ./plugins-it
run: ../mvnw --batch-mode clean install -Pit-module -Dmaven.test.failure.ignore=true
- name: Collect reports
working-directory: ./plugins-it
run: |
mkdir -p ./temp
find . -regex ".*/target/failsafe-reports/TEST.*\.xml" -exec cp "{}" ./temp \;
ls temp
- name: Publish Unit Test Results
uses: dorny/test-reporter@v1
with:
name: pinpoint-test-results
reporter: java-junit
path: './plugins-it/temp/TEST-*.xml'
fail-on-error: 'false'