-
-
Notifications
You must be signed in to change notification settings - Fork 31
48 lines (39 loc) · 1.24 KB
/
end-to-end-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
41
42
43
44
45
46
47
48
name: End-to-end Tests (cypress)
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
cypress-run:
runs-on: ubuntu-22.04
environment: cypress
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Create temporary .npmrc for GitHub Actions
run: |
echo "@bldrs-ai:registry=https://npm.pkg.github.com" > .npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc
- run: yarn install
- run: yarn cy-build
# Ensure your build script correctly outputs to the ./docs directory
env:
NODE_ENV: production
SHARE_CONFIG: cypress
- uses: cypress-io/github-action@v5
with:
browser: chrome
command: yarn cy
env:
# Ensure this matches the cypress build value in tools/esbuild/vars.cypress.js
GITHUB_BASE_URL: https://git.bldrs.dev.cy/p/gh
GITHUB_BASE_URL_UNAUTHENTICATED: https://api.github.com.cy
RAW_GIT_PROXY_URL_NEW: https://rawgit.bldrs.dev.cy/model
RAW_GIT_PROXY_URL: https://rawgit.bldrs.dev.cy/r
MSW_IS_ENABLED: true