Skip to content

Fix minMax RH for new response #61

Fix minMax RH for new response

Fix minMax RH for new response #61

Workflow file for this run

name: End-to-end tests
on: push
jobs:
install:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache node modules and .next cache
uses: actions/cache@v4
with:
path: |
~/.npm
${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}
- name: Cypress install
uses: cypress-io/github-action@v6
with:
runTests: false
build: npm run build
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
- name: Save .next folder
uses: actions/upload-artifact@v4
with:
name: next-artifact
if-no-files-found: error
path: .next
cypress-run:
runs-on: ubuntu-22.04
needs: install
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download the .next folder
uses: actions/download-artifact@v4
with:
name: next-artifact
path: .next
- name: Cache node modules and .next cache
uses: actions/cache@v4
with:
path: |
~/.npm
${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}
- name: Cypress run
uses: cypress-io/github-action@v6
with:
start: npm run start
browser: electron
record: true
env:
TZ: "America/Denver"
NEXTAUTH_SECRET: ${{ secrets.NEXTAUTH_SECRET }}
POSTGRES_URL: ${{ secrets.POSTGRES_URL }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}