Skip to content

CI

CI #800

Workflow file for this run

name: CI
on:
workflow_dispatch:
push:
branches: [main, beta, alpha]
schedule:
- cron: '0 3 * * *'
permissions: read-all
jobs:
test_unit:
name: Run Test Units
runs-on: ubuntu-latest
steps:
- name: 'Checkout code'
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac
- name: Use Node.js current version
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d
with:
node-version: current
- name: Install dependency
run: npm ci
- name: Build output
run: npm run build
- name: Run Test Units
run: npm run test
- name: Browser version testing
uses: cypress-io/github-action@59810ebfa5a5ac6fcfdcfdf036d1cd4d083a88f2
with:
command-prefix: '--'
install: false
browser: chrome
build: npm run setup:client
start: npm run start:client
record: true
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_JW_EPUB_PARSER_RECORD_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CYPRESS_PROJECT_ID: dvtrvb