mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-10 01:43:43 +00:00
c56c5a636d
* chore: upgrade dependencies * chore: remove unused * fix: issue with missing index data * fix: discrepancy on counting events * fix: swapped classes * fix: prevent attempting load in empty list * chore: cleanup completed * chore: remove unused * refactor: convert to typescript * refactor: migrate to new endpoints * refactor: convert to typescript * fix: prevent issue with undefined process * fix: small code smells * fix: issue with missing version variable on build * refactor: configure retries on data fetching * style: design review * fix: prevent cursor out of range * lint: react query linting * style: checkbox styles
67 lines
1.6 KiB
YAML
67 lines
1.6 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:
|
|
pull_request:
|
|
branches: [ master ]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 20
|
|
env:
|
|
CI: ''
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 16
|
|
|
|
# React
|
|
- 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: Server - Install dependencies
|
|
run: yarn install
|
|
working-directory: ./server/src
|
|
|
|
# App
|
|
- name: Electron - Install dependencies
|
|
run: yarn setup
|
|
working-directory: ./server
|
|
|
|
- name: Server - run tests
|
|
run: yarn test
|
|
working-directory: ./server
|
|
|
|
# - name: Install Playwright Browsers
|
|
# run: npx playwright install --with-deps
|
|
# working-directory: ./server
|
|
#
|
|
# - name: Run Playwright tests
|
|
# run: yarn e2e
|
|
# working-directory: ./server
|
|
#
|
|
# - uses: actions/upload-artifact@v3
|
|
# if: always()
|
|
# with:
|
|
# name: playwright-report
|
|
# path: playwright-report/
|
|
# retention-days: 7
|