Skip to content

Commit

Permalink
better github action
Browse files Browse the repository at this point in the history
  • Loading branch information
saeta-eth committed May 28, 2024
1 parent 5245b93 commit ac80a8e
Showing 1 changed file with 5 additions and 21 deletions.
26 changes: 5 additions & 21 deletions .github/workflows/website-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ac80a8e

Please sign in to comment.