Skip to content

(add) GitHub Continuous Integration (CI) workflows ⚙️ #1

(add) GitHub Continuous Integration (CI) workflows ⚙️

(add) GitHub Continuous Integration (CI) workflows ⚙️ #1

Workflow file for this run

# This file builds and runs the Node server for the agent using pnpm.
# Checks to ensure successful compile, lint, and run.
#
# The versioning is locked in the root agent folder. See @pnpm-lock.yaml file.
#
name: Node.js CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
lint-and-build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- name: Install System Dependencies
run: |
if [ "$RUNNER_OS" = "Linux" ]; then
sudo apt-get update && sudo apt-get install -y python3 build-essential curl
fi
- name: Install pnpm
run: |
corepack enable
corepack prepare pnpm@latest --activate
- name: Install Dependencies
run: pnpm install --frozen-lockfile
working-directory: client
- name: List Installed Node Modules
run: ls -la node_modules
working-directory: client
- name: Run Lint
run: pnpm lint
working-directory: client
- name: Run Build
run: pnpm build
working-directory: client