Skip to content

Add screenshots

Add screenshots #17

name: TypeScript checks, build and tests
on: [push]
jobs:
ts-checks-build-and-tests:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.13.0
uses: actions/setup-node@v3
with:
node-version: "18.13.0"
- name: Installing node modules
run: npm install
- name: Checking for TypeScript errors
run: npm run check-types
- name: Building app
run: npm run build
- name: Running components tests
run: npm run test:component
- name: Clonning server app repository
run: git clone https://github.com/aleksandr-kiliushin/personal-app-server.git ./server-app
- name: Installing server app packages
run: npm --prefix ./server-app install
- name: Creating dev.env file for backend and DB
run: cp ./server-app/dev.env.example ./server-app/dev.env
- name: Starting server app for tests
run: npm --prefix ./server-app run dev:db-and-api -- --detach
- name: Installing pm2
run: npm install pm2 -g
- name: Launching frontend app in background
run: pm2 start npm --name "DOES_NOT_MATTER" -- run "dev"
- name: Waiting for frontend to be launched
run: sleep 5s
- name: Running e2e tests
run: npm run test:e2e