TD-3: Use Cypress to test customizations #7
Workflow file for this run
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: Run Cypress tests | |
on: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true # runs 'bundle install' | |
- name: Set up Node.js | |
uses: actions/[email protected] | |
with: | |
node-version-file: 'package.json' | |
- name: Cypress run | |
uses: cypress-io/github-action@v6 # runs 'npm ci' | |
with: | |
start: npm start | |
wait-on: 'http://localhost:4000' |