Testing: add actions/cache to GitHub Actions for JUnit and Hamcrest JAR files
parent
8ce56a6ae2
commit
9d2524aa66
|
@ -22,9 +22,18 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Cache JUnit dependencies
|
||||||
|
uses: actions/cache@v4
|
||||||
|
id: cache-junit
|
||||||
|
with:
|
||||||
|
path: junit
|
||||||
|
key: junit-jars-v1
|
||||||
|
|
||||||
- name: Download junit-4.13.2.jar
|
- name: Download junit-4.13.2.jar
|
||||||
|
if: steps.cache-junit.outputs.cache-hit != 'true'
|
||||||
run: wget --directory-prefix=$GITHUB_WORKSPACE/junit https://repo1.maven.org/maven2/junit/junit/4.13.2/junit-4.13.2.jar
|
run: wget --directory-prefix=$GITHUB_WORKSPACE/junit https://repo1.maven.org/maven2/junit/junit/4.13.2/junit-4.13.2.jar
|
||||||
- name: Download hamcrest-all-1.3.jar
|
- name: Download hamcrest-all-1.3.jar
|
||||||
|
if: steps.cache-junit.outputs.cache-hit != 'true'
|
||||||
run: wget --directory-prefix=$GITHUB_WORKSPACE/junit https://repo1.maven.org/maven2/org/hamcrest/hamcrest-all/1.3/hamcrest-all-1.3.jar
|
run: wget --directory-prefix=$GITHUB_WORKSPACE/junit https://repo1.maven.org/maven2/org/hamcrest/hamcrest-all/1.3/hamcrest-all-1.3.jar
|
||||||
|
|
||||||
- name: Build native wolfSSL with AddressSanitizer
|
- name: Build native wolfSSL with AddressSanitizer
|
||||||
|
|
|
@ -32,10 +32,19 @@ jobs:
|
||||||
- name: Test Infer get version
|
- name: Test Infer get version
|
||||||
run: infer --version
|
run: infer --version
|
||||||
|
|
||||||
# Download Junit JARs
|
# Cache and Download Junit JARs
|
||||||
|
- name: Cache JUnit dependencies
|
||||||
|
uses: actions/cache@v4
|
||||||
|
id: cache-junit
|
||||||
|
with:
|
||||||
|
path: junit
|
||||||
|
key: junit-jars-v1
|
||||||
|
|
||||||
- name: Download junit-4.13.2.jar
|
- name: Download junit-4.13.2.jar
|
||||||
|
if: steps.cache-junit.outputs.cache-hit != 'true'
|
||||||
run: wget --directory-prefix=$GITHUB_WORKSPACE/junit https://repo1.maven.org/maven2/junit/junit/4.13.2/junit-4.13.2.jar
|
run: wget --directory-prefix=$GITHUB_WORKSPACE/junit https://repo1.maven.org/maven2/junit/junit/4.13.2/junit-4.13.2.jar
|
||||||
- name: Download hamcrest-all-1.3.jar
|
- name: Download hamcrest-all-1.3.jar
|
||||||
|
if: steps.cache-junit.outputs.cache-hit != 'true'
|
||||||
run: wget --directory-prefix=$GITHUB_WORKSPACE/junit https://repo1.maven.org/maven2/org/hamcrest/hamcrest-all/1.3/hamcrest-all-1.3.jar
|
run: wget --directory-prefix=$GITHUB_WORKSPACE/junit https://repo1.maven.org/maven2/org/hamcrest/hamcrest-all/1.3/hamcrest-all-1.3.jar
|
||||||
|
|
||||||
# Build native wolfSSL
|
# Build native wolfSSL
|
||||||
|
|
|
@ -25,9 +25,18 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Cache JUnit dependencies
|
||||||
|
uses: actions/cache@v4
|
||||||
|
id: cache-junit
|
||||||
|
with:
|
||||||
|
path: junit
|
||||||
|
key: junit-jars-v1
|
||||||
|
|
||||||
- name: Download junit-4.13.2.jar
|
- name: Download junit-4.13.2.jar
|
||||||
|
if: steps.cache-junit.outputs.cache-hit != 'true'
|
||||||
run: wget --directory-prefix=$GITHUB_WORKSPACE/junit https://repo1.maven.org/maven2/junit/junit/4.13.2/junit-4.13.2.jar
|
run: wget --directory-prefix=$GITHUB_WORKSPACE/junit https://repo1.maven.org/maven2/junit/junit/4.13.2/junit-4.13.2.jar
|
||||||
- name: Download hamcrest-all-1.3.jar
|
- name: Download hamcrest-all-1.3.jar
|
||||||
|
if: steps.cache-junit.outputs.cache-hit != 'true'
|
||||||
run: wget --directory-prefix=$GITHUB_WORKSPACE/junit https://repo1.maven.org/maven2/org/hamcrest/hamcrest-all/1.3/hamcrest-all-1.3.jar
|
run: wget --directory-prefix=$GITHUB_WORKSPACE/junit https://repo1.maven.org/maven2/org/hamcrest/hamcrest-all/1.3/hamcrest-all-1.3.jar
|
||||||
|
|
||||||
- name: Build native wolfSSL
|
- name: Build native wolfSSL
|
||||||
|
|
Loading…
Reference in New Issue