A GitHub Actions workflow with separate install and test steps

Published: 24 February 2021
on channel: gleb bahmutov
874
11

I am showing the https://github.com/bahmutov/cypress-g... workflow where we use two jobs. The first job installs the dependencies and builds the site. The second job downloads the built site and runs Cypress tests. Splitting the workflow like this allows us to build the site just once and potentially run multiple tests in parallel using Cypress GitHub Action.