This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
dagger/.github/workflows/test-website.yml
Kasper Juul Hermansen 252fdc8ba1
Some checks reported errors
renovate/artifacts Artifact file update failure
continuous-integration/drone/push Build encountered an error
continuous-integration/drone/pr Build encountered an error
fix(deps): update all dependencies
2024-02-05 17:43:46 +00:00

47 lines
1.2 KiB
YAML

name: "Test Website"
on:
push:
branches: [main]
paths:
- "website/**"
- ".github/workflows/test-website.yml"
pull_request:
branches: [main]
paths:
- "website/**"
- ".github/workflows/test-website.yml"
jobs:
test-website:
name: "Test Website"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cypress run
uses: cypress-io/github-action@v2
env:
REACT_APP_CLIENT_ID: 123
REACT_APP_CLIENT_SECRET: 123
REACT_APP_DAGGER_SITE_URI: https://dagger.io
REACT_APP_API_PROXY_ENABLE: false
REACT_APP_AMPLITUDE_ID: 123
with:
config: chromeWebSecurity=false
install-command: yarn install --silent
start: |
yarn start
working-directory: ./website
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-screenshots
path: website/cypress/screenshots
# Test run video was always captured, so this action uses "always()" condition
- uses: actions/upload-artifact@v4
if: always()
with:
name: cypress-videos
path: website/cypress/videos