Skip to content

Commit e4bcd17

Browse files
authored
Set up maven cache + execute the regular and extended test suites (#51)
* Added regular test on top of extended tests, cache fix attempt * indent typo? * putting everyhting in one line * try to update caching * split maven tests into 2 steps #47 * fix typos in names #47
1 parent f141783 commit e4bcd17

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/CryptatorTest.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,22 @@ jobs :
44
tests:
55
runs-on: ubuntu-latest
66
steps:
7-
- name: Checkhout the repository
7+
- name: Checkout the repository
88
uses: actions/checkout@v3
99
- name: Set up JDK 11
1010
uses: actions/setup-java@v3
1111
with:
1212
java-version: '11'
1313
distribution: 'adopt'
1414
cache: 'maven'
15+
- name: Cache local Maven repository
16+
uses: actions/cache@v3
17+
with:
18+
path: ~/.m2/repository
19+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
20+
restore-keys: |
21+
${{ runner.os }}-maven-
1522
- name: Test with Maven
16-
run: mvn -B test -Dtest=ExtensiveTesting --file pom.xml
23+
run: mvn test --file pom.xml
24+
- name: Extended test with Maven
25+
run: mvn test -Dtest=ExtensiveTesting --file pom.xml

0 commit comments

Comments
 (0)