Update dependency cypress-cdp to v1.6.16 (#409) #502
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: slides | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout 🛎 | |
uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 16 | |
# https://github.com/cypress-io/github-action | |
- name: Test slides 🎞 | |
uses: cypress-io/github-action@v6 | |
with: | |
config-file: 'cypress.slides-config.js' | |
start: 'npm run slides' | |
wait-on: 'http://localhost:3100' | |
# build and deploy new version of the slides | |
- name: Build slides 🏗 | |
run: npm run slides:build -- --base /cypress-workshop-basics/ | |
- name: Show the built folder 📋 | |
run: ls -la dist | |
# if the tests passed, publish the application | |
# https://github.com/peaceiris/actions-gh-pages | |
- name: Publish slides 🌐 | |
if: github.ref == 'refs/heads/main' | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./dist |