2022-10-31 13:44:27 +05:30
|
|
|
name: Test
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [$default-branch]
|
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
2022-10-31 13:51:52 +05:30
|
|
|
setup_and_test:
|
2022-10-31 13:44:27 +05:30
|
|
|
runs-on: macos-11
|
|
|
|
steps:
|
|
|
|
- name: Setup node
|
|
|
|
uses: actions/setup-node@v2
|
|
|
|
with:
|
2023-06-21 13:35:42 +05:30
|
|
|
node-version: '16.14.0'
|
2022-10-31 13:44:27 +05:30
|
|
|
|
|
|
|
- name: Set yarn version
|
|
|
|
run: yarn set version 1.22.18
|
|
|
|
|
|
|
|
- name: Checkout Books
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Install Dependencies
|
|
|
|
run: yarn
|
|
|
|
|
2023-06-27 11:42:47 +05:30
|
|
|
- name: Run Tests
|
|
|
|
run: yarn test
|
|
|
|
|
|
|
|
setup_and_uitest:
|
|
|
|
runs-on: macos-11
|
|
|
|
steps:
|
|
|
|
- name: Setup node
|
|
|
|
uses: actions/setup-node@v2
|
|
|
|
with:
|
|
|
|
node-version: '16.14.0'
|
|
|
|
|
|
|
|
- name: Set yarn version
|
|
|
|
run: yarn set version 1.22.18
|
|
|
|
|
|
|
|
- name: Checkout Books
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Install Dependencies
|
|
|
|
run: yarn
|
|
|
|
|
|
|
|
- name: Build Source Files
|
|
|
|
run: yarn build --nosign --nopackage
|
|
|
|
|
|
|
|
- name: Run UI Tests
|
|
|
|
run: yarn uitest
|