Skip to content

Feat/new websockets #432

Feat/new websockets

Feat/new websockets #432

# .github/workflows/lint-format-build.yml
name: Lint, Format, and Build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint-and-format:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "21"
- name: Install dependencies for server
working-directory: ./server
run: |
npm install
- name: Install dependencies for client
working-directory: ./client
run: |
npm install
- name: Run ESLint for server
working-directory: ./server
run: |
npx eslint .
- name: Run ESLint for client
working-directory: ./client
run: |
npx eslint .
- name: Run Prettier check for server
working-directory: ./server
run: |
npx prettier --check .
- name: Run Prettier check for client
working-directory: ./client
run: |
npx prettier --check .
- name: Build server
working-directory: ./server
run: |
npm run build
- name: Build client
working-directory: ./client
run: |
npm run build