Skip to content

deps: bump @types/node from 26.1.1 to 26.4.1 #696

deps: bump @types/node from 26.1.1 to 26.4.1

deps: bump @types/node from 26.1.1 to 26.4.1 #696

Workflow file for this run

name: CI
on:
push:
paths:
- src/**
- scripts/**
- llm-docs/**
- package.json
- bun.lock
- vitest.config.ts
- vitest.setup.ts
- .github/workflows/ci.yml
pull_request:
paths:
- src/**
- scripts/**
- llm-docs/**
- package.json
- bun.lock
- vitest.config.ts
- vitest.setup.ts
- .github/workflows/ci.yml
workflow_dispatch:
permissions:
contents: read
jobs:
dependency-review:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Dependency review
uses: actions/dependency-review-action@v5
build:
runs-on: ubuntu-latest
permissions:
contents: write
strategy:
matrix:
node-version: [22.x]
steps:
- uses: actions/checkout@v6
with:
show-progress: false
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.2.11
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Run tests with coverage
run: bun run test-with-coverage
env:
NODE_ENV: test
STAGE: test
CI: true
- name: Generate coverage badge
id: coverage-badge
run: |
COVERAGE=$(bun scripts/generate-coverage-badge.ts)
echo "coverage=$COVERAGE" >> "$GITHUB_OUTPUT"
echo "## Coverage" >> "$GITHUB_STEP_SUMMARY"
echo "" >> "$GITHUB_STEP_SUMMARY"
echo "Current line coverage: **$COVERAGE**" >> "$GITHUB_STEP_SUMMARY"
- name: Commit coverage badge
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: stefanzweifel/git-auto-commit-action@v7
with:
commit_message: "chore: update coverage badge"
file_pattern: badges/coverage.svg
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
show-progress: false
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.2.11
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Build docs
run: bun run docs:pages
env:
DOCS_BASE: /keylab/
- name: Setup Pages
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: actions/configure-pages@v6
- name: Upload Pages artifact
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v5
with:
path: public
deploy-docs:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
needs: docs
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5