From ac80a8e472154a5c4e111ed9d161ca2ec5c0a078 Mon Sep 17 00:00:00 2001 From: "saeta.eth" Date: Tue, 28 May 2024 15:51:19 +0900 Subject: [PATCH] better github action --- .github/workflows/website-e2e.yml | 26 +++++--------------------- 1 file changed, 5 insertions(+), 21 deletions(-) diff --git a/.github/workflows/website-e2e.yml b/.github/workflows/website-e2e.yml index 997349a56..2e4cb8cbc 100644 --- a/.github/workflows/website-e2e.yml +++ b/.github/workflows/website-e2e.yml @@ -10,29 +10,13 @@ jobs: cypress-run: runs-on: ubuntu-22.04 steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Cache node modules - id: cache-npm - uses: actions/cache@v3 - env: - cache-name: cache-node-modules + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - # npm cache files are stored in `~/.npm` on Linux/macOS - path: ~/.npm - key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-build-${{ env.cache-name }}- - ${{ runner.os }}-build- - ${{ runner.os }}- - - - if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }} - name: List the state of node modules - continue-on-error: true - run: npm list + node-version: '20.5.1' + cache: 'npm' - - name: Install dependencies + - name: Install Dependencies run: npm ci - name: Cypress run