Skip to content

Instantly share code, notes, and snippets.

@mglaman
Created July 11, 2021 21:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mglaman/67fa955e5744f26a918005f53173b64a to your computer and use it in GitHub Desktop.
Save mglaman/67fa955e5744f26a918005f53173b64a to your computer and use it in GitHub Desktop.
GitHub Actions running Cypress within Lando
name: Cypress
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: wget https://files.devwithlando.io/lando-stable.deb
- run: sudo dpkg -i --ignore-depends=docker-ce lando-stable.deb
- run: lando start
- run: |
sudo cp -r ~/.lando/certs/lndo.site.pem /usr/local/share/ca-certificates/lndo.site.pem
sudo cp -r ~/.lando/certs/lndo.site.crt /usr/local/share/ca-certificates/lndo.site.crt
sudo update-ca-certificates
# Ensure Cypress is available on the host.
- run: ./node_modules/.bin/cypress install
- run: npm run cypress:lando:run
- uses: actions/upload-artifact@v2
if: ${{ failure() }}
with:
name: cypress
path: |
tests/cypress/screenshots
tests/cypress/results
storage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment