gradio/.github/workflows/ui.yml
pngwn db59544d50
add unit tests (#602)
* add unit tests

* add tests to ci

* fix naming of tests
2022-02-14 15:24:04 +00:00

38 lines
709 B
YAML

name: gradio-ui
on:
push:
branches:
- "master"
paths:
- "ui/**"
pull_request:
paths:
- "ui/**"
defaults:
run:
working-directory: ./ui
jobs:
check:
name: static checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm i -g pnpm@6
- uses: actions/setup-node@v2
with:
node-version: 16
- name: install dependencies
run: pnpm i --frozen-lockfile
- name: formatting check
run: pnpm format:check
- name: typecheck
run: pnpm ts:check
continue-on-error: true
- name: unit tests
run: pnpm test:run
- name: build
run: pnpm build