From 4f4050beca4c9b881398ff372461af62f4f644c4 Mon Sep 17 00:00:00 2001 From: Daniel Hensby Date: Thu, 25 Jul 2024 16:10:24 +0100 Subject: [PATCH] ci: update GitHub actions to latest version - Update actions/checkout to v4 - Update actions/setup-node to v4 - Remove actions/cache and use built in caching by actions/setup-node --- .github/workflows/test.yml | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7542ff2..355b693 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,24 +11,16 @@ jobs: node-version: [18.x] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + with: + persist-credentials: false + show-progress: false - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - - - name: Cache node modules - uses: actions/cache@v2 - env: - cache-name: cache-node-modules - with: - path: ~/.npm - key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-build-${{ env.cache-name }}- - ${{ runner.os }}-build- - ${{ runner.os }}- + cache: yarn - name: Install dependencies run: yarn