From b05b2105798a96ec5c9641959ef2569268b6bfab Mon Sep 17 00:00:00 2001 From: Yeikel Date: Sat, 11 Feb 2023 18:44:29 -0500 Subject: [PATCH] ci: use built in dependency caching and use temurin --- .github/workflows/build.yml | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4555776..e2d8a91 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,16 +17,11 @@ jobs: checks: write steps: - uses: actions/checkout@v3 - - uses: actions/cache@v3 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-main-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-main-maven- - uses: actions/setup-java@v3 with: java-version: 8 - distribution: 'zulu' + distribution: 'temurin' + cache: 'maven' - run: cd tests && mvn clean test --batch-mode -Dmaven.test.failure.ignore=true - uses: ./ if: github.ref != 'refs/heads/master' @@ -57,12 +52,7 @@ jobs: - uses: actions/setup-node@v3 with: node-version: 16 - - uses: actions/cache@v3 - with: - path: ~/.npm - key: ${{ runner.os }}-npm-cache-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-npm-cache- + cache: npm - run: npm install - run: npm run eslint - run: npm run test