Created
July 11, 2021 21:40
-
-
Save mglaman/67fa955e5744f26a918005f53173b64a to your computer and use it in GitHub Desktop.
GitHub Actions running Cypress within Lando
This file contains hidden or 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 | |
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