This is an automated email from the ASF dual-hosted git repository.
baunsgaard pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/systemds.git
The following commit(s) were added to refs/heads/master by this push:
new 0e2ffe0 [MINOR] Cache specific for tests
0e2ffe0 is described below
commit 0e2ffe0c9134d1ae3a9690adfdc9b872461e308a
Author: baunsgaard <[email protected]>
AuthorDate: Wed Aug 19 12:39:19 2020 +0200
[MINOR] Cache specific for tests
Caching for testing environment, to not unnecessarily download testing
resources in build tests, or the other way around not overwriting the
case from build tests, to not include test resources.
Furthermore, this should stabilize the tests more. To try and fix some
of the inconsistency in startup of and execution of test.
Closes #1029.
---
.github/workflows/applicationTests.yml | 8 ++++++++
.github/workflows/componentTests.yml | 4 ++--
.github/workflows/functionsTests.yml | 8 ++++++++
3 files changed, 18 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/applicationTests.yml
b/.github/workflows/applicationTests.yml
index 5b36aab..cf06630 100644
--- a/.github/workflows/applicationTests.yml
+++ b/.github/workflows/applicationTests.yml
@@ -42,6 +42,14 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v2
+ - name: Cache Maven Dependencies
+ uses: actions/cache@v1
+ with:
+ path: ~/.m2/repository
+ key: ${{ runner.os }}-maven-test-${{ hashFiles('**/pom.xml') }}
+ restore-keys: |
+ ${{ runner.os }}-maven-test-
+
- name: Run all tests starting with "${{ matrix.tests }}"
uses: ./.github/action/
id: test
diff --git a/.github/workflows/componentTests.yml
b/.github/workflows/componentTests.yml
index 820a156..58721f5 100644
--- a/.github/workflows/componentTests.yml
+++ b/.github/workflows/componentTests.yml
@@ -44,9 +44,9 @@ jobs:
uses: actions/cache@v1
with:
path: ~/.m2/repository
- key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
+ key: ${{ runner.os }}-maven-test-${{ hashFiles('**/pom.xml') }}
restore-keys: |
- ${{ runner.os }}-maven-
+ ${{ runner.os }}-maven-test-
- name: Component Tests
run: |
diff --git a/.github/workflows/functionsTests.yml
b/.github/workflows/functionsTests.yml
index ce95732..63fd85e 100644
--- a/.github/workflows/functionsTests.yml
+++ b/.github/workflows/functionsTests.yml
@@ -82,6 +82,14 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v2
+ - name: Cache Maven Dependencies
+ uses: actions/cache@v1
+ with:
+ path: ~/.m2/repository
+ key: ${{ runner.os }}-maven-test-${{ hashFiles('**/pom.xml') }}
+ restore-keys: |
+ ${{ runner.os }}-maven-test-
+
- name: Run all tests starting with "${{ matrix.tests }}"
uses: ./.github/action/
id: test