This repository has been archived by the owner on Feb 25, 2024. It is now read-only.
Merge pull request #426 from statelyai/mellson/make-it-possible-to-se… #842
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI/CD | |
on: [push] | |
jobs: | |
cypress-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: 'yarn' | |
- name: Install | |
run: yarn install --frozen-lockfile | |
- name: Lint | |
run: yarn tsc | |
- name: Jest tests | |
run: yarn jest --ci | |
# TODO: The Cypress tests need updating after we've moved to consume REST endpoints. That work is on hold until we decide how to do e2e tests internally. | |
# | |
# - name: Build | |
# run: yarn next build | |
# env: | |
# NEXT_PUBLIC_SUPABASE_API_URL: ${{ secrets.SUPABASE_API_URL }} | |
# NEXT_PUBLIC_SUPABASE_ANON_API_KEY: ${{ secrets.SUPABASE_ANON_API_KEY }} | |
# NEXT_PUBLIC_USE_LOCAL_MONACO: 'true' | |
# CI: 'false' | |
# - name: Run Cypress | |
# uses: cypress-io/github-action@v2 | |
# with: | |
# start: yarn serve | |
# wait-on: http://localhost:3000 | |
# - name: Upload Screenshots | |
# uses: actions/upload-artifact@v1 | |
# if: failure() | |
# with: | |
# name: cypress-screenshots | |
# path: cypress/screenshots | |
# - name: Upload Videos | |
# uses: actions/upload-artifact@v1 | |
# if: always() | |
# with: | |
# name: cypress-videos | |
# path: cypress/videos |