Skip to content

Commit 465d5b8

Browse files
committed
Adding archiving and caching steps to workflow
1 parent 7f771e7 commit 465d5b8

3 files changed

Lines changed: 43 additions & 0 deletions

File tree

.github/workflows/gradle-build.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ jobs:
1515
uses: actions/setup-java@v1
1616
with:
1717
java-version: 1.8
18+
- name: Cache Gradle packages
19+
uses: actions/cache@v2
20+
with:
21+
path: |
22+
~/.gradle/caches
23+
~/.gradle/wrapper
1824
- name: Setup gradle binaries
1925
run: ./gradlew
2026
- name: Pull dependencies libs, and perform initial compile
@@ -23,3 +29,12 @@ jobs:
2329
run: ./gradlew test
2430
- name: Run the build
2531
run: ./gradlew build
32+
- name: Archive code coverage results
33+
uses: actions/upload-artifact@v2
34+
with:
35+
name: code-coverage-report
36+
path: |
37+
build/reports/**/*
38+
build/test-results/**/*
39+
build/jacoco/**/*
40+
build/libs/**/*

.github/workflows/mysql-5-7.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,23 @@ jobs:
2828
uses: actions/setup-java@v1
2929
with:
3030
java-version: 1.8
31+
- name: Cache Gradle packages
32+
uses: actions/cache@v2
33+
with:
34+
path: |
35+
~/.gradle/caches
36+
~/.gradle/wrapper
3137
- name: Setup gradle binaries
3238
run: ./gradlew
3339
- name: Pull dependencies libs, and perform initial compile
3440
run: ./gradlew src
3541
- name: Run unit tests
3642
run: ./gradlew test -Ptest_mysql
43+
- name: Archive code coverage results
44+
uses: actions/upload-artifact@v2
45+
with:
46+
name: code-coverage-report
47+
path: |
48+
build/reports/**/*
49+
build/test-results/**/*
50+
build/jacoco/**/*

.github/workflows/mysql-8.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,23 @@ jobs:
2828
uses: actions/setup-java@v1
2929
with:
3030
java-version: 1.8
31+
- name: Cache Gradle packages
32+
uses: actions/cache@v2
33+
with:
34+
path: |
35+
~/.gradle/caches
36+
~/.gradle/wrapper
3137
- name: Setup gradle binaries
3238
run: ./gradlew
3339
- name: Pull dependencies libs, and perform initial compile
3440
run: ./gradlew src
3541
- name: Run unit tests
3642
run: ./gradlew test -Ptest_mysql
43+
- name: Archive code coverage results
44+
uses: actions/upload-artifact@v2
45+
with:
46+
name: code-coverage-report
47+
path: |
48+
build/reports/**/*
49+
build/test-results/**/*
50+
build/jacoco/**/*

0 commit comments

Comments
 (0)