-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (38 loc) · 1.09 KB
/
browser_tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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}}