-
Notifications
You must be signed in to change notification settings - Fork 4
45 lines (44 loc) · 1.24 KB
/
tests_dev.yaml
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
name: Tests (DoltHub Dev)
on:
workflow_dispatch:
inputs:
preview:
description: 'Choose a dev or dev preview'
required: true
default: 'dolthub'
type: choice
options:
- dolthub
- dolthub-preview-1
- dolthub-preview-2
- dolthub-preview-3
jobs:
cypress-run:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Enable Corepack
run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: "18"
- name: Install dependencies
run: yarn
- name: Cypress run
uses: cypress-io/github-action@v3
with:
install: false
browser: chrome
config-file: cypress.config.ts
env:
CYPRESS_BASE_URL: https://${{ github.event.inputs.preview }}.awsdev.ld-corp.com
CYPRESS_TEST_USERNAME: ${{ secrets.CYPRESS_TEST_USERNAME }}
CYPRESS_TEST_PASSWORD: ${{ secrets.CYPRESS_TEST_PASSWORD }}
- name: Save screenshots of failed tests
uses: actions/upload-artifact@v3
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots
retention-days: 7