Use pnpm instead of Bun #41
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
# SPDX-FileCopyrightText: 2024 LiveKit, Inc. | |
# | |
# SPDX-License-Identifier: Apache-2.0 | |
name: agents CI | |
on: [push, pull_request] | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: REUSE-3.0 compliance check | |
uses: fsfe/reuse-action@v3 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: pnpm | |
- name: Install dependencies | |
run: pnpm install | |
- name: ESLint | |
run: | | |
cd agents | |
pnpm lint | |
cd ../plugins/elevenlabs | |
pnpm lint | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
needs: lint | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: pnpm | |
- name: Install dependencies | |
run: pnpm install | |
- name: pnpm build | |
run: | | |
cd agents | |
pnpm build | |
cd ../plugins/elevenlabs | |
pnpm build |