cloud also needs config #46
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: Cypress Tests | |
on: | |
push: | |
branches: | |
- main | |
- cypress-cloud | |
workflow_dispatch: | |
jobs: | |
cypress-run: | |
runs-on: ubuntu-24.04 | |
timeout-minutes: 5 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Install Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- name: npm install | |
run: npm install | |
- name: Start server for tests | |
run: bundle exec jekyll serve --detach | |
- name: Run Cypress tests | |
uses: cypress-io/github-action@v6 | |
with: | |
wait-on: "http://localhost:4000" | |
config: baseUrl=http://localhost:4000 | |
- name: Run Cypress tests on Cypress Cloud | |
uses: cypress-io/github-action@v6 | |
with: | |
wait-on: "http://localhost:4000" | |
config: baseUrl=http://localhost:4000 | |
record: true | |
env: | |
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |