Bump ws from 7.5.7 to 7.5.10 #98
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: pull_request | |
jobs: | |
setup: | |
name: Setup tests | |
runs-on: ubuntu-latest | |
outputs: | |
preview_url: ${{ steps.waitForVercelPreviewDeployment.outputs.url }} | |
steps: | |
- name: Wait for Vercel preview deployment to be ready | |
uses: patrickedqvist/wait-for-vercel-preview@v1.2.0 | |
id: waitForVercelPreviewDeployment | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
max_timeout: 60 | |
test: | |
name: Run Cypress | |
needs: setup | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Cache node_modules and Cypress | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cache/Cypress | |
node_modules | |
key: pushups-cache-${{ runner.os }}-${{ hashFiles('package-lock.json') }} | |
- name: Install Cypress | |
run: npm i cypress | |
- name: Run Cypress | |
uses: cypress-io/github-action@v4 | |
with: | |
config: baseUrl=${{ needs.setup.outputs.preview_url }} | |
spec: cypress/e2e/test.cy.js | |
install: false |