Skip to content

[CI] Fix release pipeline #261

[CI] Fix release pipeline

[CI] Fix release pipeline #261

Workflow file for this run

name: CI
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [main]
pull_request:
branches: [main]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build-and-test:
name: Build and test
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "lts/*"
- name: Setup Server dependencies
working-directory: ./Server
run: |
npm install
- name: Build backend
working-directory: ./Server
shell: bash
run: |
npm run build
clean-frontend:
name: Run clean code tests on frontend
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "lts/*"
- name: Install (dev) dependencies
working-directory: ./Chat
run: npm install
- name: Lint
working-directory: ./Chat
run: npm run lint
- name: Check all is pretty
working-directory: ./Chat
run: npm run prettier:check
- name: Build
working-directory: ./Chat
run: npm run build