chore(deps): update dependency ubuntu to v24 #70
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: separate | |
on: [push] | |
# this workflow has two jobs | |
# 1. the "install-job" installs everything and saves the build | |
# web application as an upload artifact | |
# 2. the "test-job" downloads the build site and runs tests | |
jobs: | |
install-job: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
# only install the dependencies without running any tests | |
- name: Cypress run | |
uses: cypress-io/github-action@v2 | |
with: | |
runTests: false | |
- run: npm run build | |
# only upload the local folders we built / updated | |
# ./public | |
# TIP: we want to avoid uploading node_modules since it is SLOW | |
# https://glebbahmutov.com/blog/parallel-cypress-tests-gh-action/ | |
- name: Save built folders 🆙 | |
uses: actions/upload-artifact@v2 | |
with: | |
name: built | |
path: | | |
public | |
test-job: | |
runs-on: ubuntu-24.04 | |
needs: install-job | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Download built folders ⏬ | |
uses: actions/download-artifact@v2 | |
with: | |
name: built | |
# install dependencies and run the tests | |
- name: Cypress run | |
uses: cypress-io/github-action@v2 | |
with: | |
command: npm run expect -- --env lastName=Smith | |
env: | |
CYPRESS_firstName: Joe |