mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-10 09:53:48 +00:00
48093b8651
* ux/54-help tooltips * ux/54-help refetch after mutation * ux/54-help broadcast event index * ux/54-help prevent multiple keypresses when key held * ux/54-help fat clock * ux/54-help progress bar user defined * ux/54-help onAir is button * ux/54-help OSC: add missing presenter message * ux/54-help OSC: enable / disable OSC * ux/54-help handle timezone in excel date import * ux/54-help tray left click to show app * ux/54-help create queriable endpoint * ux/54-help fix memoisation in lower thirds * ux/54-help revise icons * ux/54-help clarify text * ux/54-help forgiving text parsing * ux/54-help add smart keywords * ux/54-help version bump
70 lines
1.8 KiB
YAML
70 lines
1.8 KiB
YAML
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
|
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
|
|
|
|
name: ontime_test_CI
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
CI: ''
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: '14.x'
|
|
|
|
# Utils server
|
|
- name: Utils - Install dependencies
|
|
run: yarn install
|
|
working-directory: ./server/utils
|
|
|
|
- name: Utils - run link command
|
|
run: yarn link
|
|
working-directory: ./server/utils
|
|
|
|
# React
|
|
- name: React - Link to utils
|
|
run: yarn link ontime-utils
|
|
working-directory: ./client
|
|
|
|
- name: React - Install dependencies
|
|
run: yarn install
|
|
working-directory: ./client
|
|
|
|
- name: React - Run tests
|
|
run: yarn test:pipeline
|
|
working-directory: ./client
|
|
|
|
- name: React - Build project
|
|
run: yarn build
|
|
working-directory: ./client
|
|
|
|
# Node server
|
|
- name: React - Link to utils
|
|
run: yarn link ontime-utils
|
|
working-directory: ./server/src
|
|
|
|
- name: Server - Install dependencies
|
|
run: yarn install
|
|
working-directory: ./server/src
|
|
|
|
# App
|
|
- name: Electron - Install dependencies
|
|
run: yarn install && yarn make && yarn setdb
|
|
working-directory: ./server
|
|
|
|
- name: Electron - Run tests
|
|
run: yarn test
|
|
working-directory: ./server
|
|
|
|
- name: Cypress run
|
|
uses: cypress-io/github-action@v2
|
|
with:
|
|
working-directory: ./server
|
|
start: yarn cypress |