Skip to content

ci fixes

ci fixes #24

Workflow file for this run

name: CI/CD Pipeline
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
test-app:
name: Test App
runs-on: ubuntu-latest
steps:
# Check out repository code
- name: Checkout code
uses: actions/checkout@v4
# Set up Node.js
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Setup server
working-directory: server
run: npm i
- name: Setup socket
working-directory: socket
run: npm i
- name: setup client
working-directory: client
run: npm i
- name: Run app
working-directory: client
run: |
nohup npm run start:test &
sleep 10
env:
JWT_SECRET_KEY: ${{secrets.JWT_SECRET_KEY}}
VITE_SERVER_HOST: 0.0.0.0
VITE_SERVER_PORT: 5173
- name: install playwright browser
working-directory: client
run: npx playwright install --with-deps
- name: Run Playwright tests
working-directory: client
run: npx playwright test --reporter=line
env:
VITE_SERVER_HOST: 0.0.0.0
VITE_SERVER_PORT: 5173
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 30