Skip to content

Update JS/TS E2B core package #39

Update JS/TS E2B core package

Update JS/TS E2B core package #39

Workflow file for this run

name: Lint
on:
pull_request:
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9.15.5
- name: Setup Node.js 20
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: pnpm
- name: Configure pnpm
run: |
pnpm config set auto-install-peers true
pnpm config set exclude-links-from-lockfile true
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
version: 1.5.1
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Install Python dependencies
working-directory: python
run: |
poetry install --with dev
pip install ruff=="0.11.12"
- name: Run linting
run: |
pnpm run lint
- name: Run formatting
run: |
pnpm run format
- name: Check for uncommitted changes
run: |
if [[ -n $(git status --porcelain) ]]; then
echo "❌ Files are not formatted properly:"
git status --short
git diff
exit 1
else
echo "✅ No changes detected."
fi