Skip to content

Merge pull request #431 from GNS-Science/feature/426_vite_migration #251

Merge pull request #431 from GNS-Science/feature/426_vite_migration

Merge pull request #431 from GNS-Science/feature/426_vite_migration #251

Workflow file for this run

name: Cypress Tests
on:
push:
branches:
- main
- deploy-test
jobs:
cypress-run:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: create env file
run: |
touch .env
echo VITE_MSW=test >> .env
echo VITE_DISCLAIMER_VERSION=versionOne >> .env
echo VITE_GRAPHQL_ENDPOINT=..../graphql >> .env
echo VITE_GRAPHQL_API_KEY=$##@! >> .env
echo GENERATE_SOURCEMAP=false >> .env
cat .env
- name: Node Setup
uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://npm.pkg.github.com/
scope: '@gns-science'
- name: Cypress run
uses: cypress-io/github-action@v4
with:
wait-on: 'http://localhost:5173'
record: true
build: yarn build
start: yarn preview
env:
NODE_AUTH_TOKEN: ${{ secrets.TOSHI_NEST_PACKAGE_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY}}