-
-
Notifications
You must be signed in to change notification settings - Fork 4
47 lines (38 loc) · 1.12 KB
/
ci.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
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@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Use Node.js LTS version
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af
with:
node-version: lts/Iron
- 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@57b70560982e6a11d23d4b8bec7f8a487cdbb71b
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