Skip to content

TD-3: Add Cypress test environment #3

TD-3: Add Cypress test environment

TD-3: Add Cypress test environment #3

Workflow file for this run

name: Build Jekyll site and run Cypress tests
on:
pull_request:
branches: ['master']
# Allows you to run this workflow manually from the Actions tab
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:
ruby-version: '3.1'
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: '20'
- name: Install Node.js dependencies
run: npm ci
- name: Cypress run
uses: cypress-io/github-action@v6
with:
start: npm start
wait-on: 'http://localhost:4000'