diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9e6bd7d..4da1266 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,28 +1,30 @@ name: Run Cypress tests on: push: pull_request: workflow_dispatch: jobs: test: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v3 - - name: Setup nodejs - uses: actions/setup-node@v3 + - name: Setup npm cache + uses: actions/cache@v2 with: - node-version: 16 - cache: 'npm' + path: '~/.npm' + key: ${{ runner.os }}-node + restore-keys: | + ${{ runner.os }}-node - name: Install Cypress run: | npm install cypress" $(npm bin)/cypress install - name: Run Cypress run: | $(npm bin)/cypress run