Skip to content

Bump the production-dependencies group across 1 directory with 5 updates #57

Bump the production-dependencies group across 1 directory with 5 updates

Bump the production-dependencies group across 1 directory with 5 updates #57

Workflow file for this run

# CI -- the thing that catches what you missed locally.
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Test
runs-on: ${{ github.event_name == 'pull_request' && 'ubuntu-latest' || fromJSON('["self-hosted", "linux", "x64", "vps"]') }}
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v6
with:
node-version: 24.x
cache: pnpm
- run: pnpm install --frozen-lockfile
- name: Typecheck
run: pnpm typecheck
- name: Run tests
run: pnpm test:run --coverage
- name: Upload coverage
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage/lcov.info
fail_ci_if_error: false
build:
name: Build
runs-on: ${{ github.event_name == 'pull_request' && 'ubuntu-latest' || fromJSON('["self-hosted", "linux", "x64", "vps"]') }}
needs: test
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v6
with:
node-version: 24.x
cache: pnpm
- run: pnpm install --frozen-lockfile
- name: Build
run: pnpm build
- name: Verify artifacts exist
run: |
echo "## Build Artifacts" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "| File | Size |" >> $GITHUB_STEP_SUMMARY
echo "| --- | --- |" >> $GITHUB_STEP_SUMMARY
for file in dist/cli.mjs dist/index.mjs dist/index.d.ts; do
if [ ! -f "$file" ]; then
echo "::error::Missing artifact: $file -- something went very wrong"
exit 1
fi
size=$(du -h "$file" | cut -f1)
echo "| \`$file\` | $size |" >> $GITHUB_STEP_SUMMARY
done
lint:
name: Lint
runs-on: ${{ github.event_name == 'pull_request' && 'ubuntu-latest' || fromJSON('["self-hosted", "linux", "x64", "vps"]') }}
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v6
with:
node-version: 24.x
cache: pnpm
- run: pnpm install --frozen-lockfile
- name: Lint
run: pnpm lint
distribution-smoke:
name: Distribution Smoke
runs-on: ${{ github.event_name == 'pull_request' && 'ubuntu-latest' || fromJSON('["self-hosted", "linux", "x64", "vps"]') }}
needs: build
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v6
with:
node-version: 24.x
cache: pnpm
- run: pnpm install --frozen-lockfile
- name: Build
run: pnpm build
- name: Smoke test local build
run: |
set -euo pipefail
node dist/cli.mjs --help
node dist/cli.mjs --version