Feat/new websockets #434
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .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 |