# 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