Files
xbin/.github/workflows/ci.yml
T
dependabot[bot] 82c1cf6a1d ci: bump codecov/codecov-action from 5 to 6
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 5 to 6.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v5...v6)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-27 03:40:05 +00:00

97 lines
2.1 KiB
YAML

name: CI
on:
pull_request:
paths-ignore:
- '**/*.md'
- 'LICENSE'
- '.editorconfig'
- '.gitattributes'
- '.gitignore'
- '.prettierignore'
- '.prettierrc'
- 'codecov.yml'
push:
branches:
- main
paths-ignore:
- '**/*.md'
- 'LICENSE'
- '.editorconfig'
- '.gitattributes'
- '.gitignore'
- '.prettierignore'
- '.prettierrc'
- 'codecov.yml'
merge_group:
workflow_dispatch:
permissions:
contents: read
id-token: write
concurrency:
group: ci-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
BUN_VERSION: 1.3.11
jobs:
quality:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Set up Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ env.BUN_VERSION }}
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Check formatting
run: bun run format:check
- name: Check TypeScript
run: bun run check
- name: Check generated Wrangler types
run: bunx wrangler types --check
- name: Run tests with coverage
run: bun run test:coverage
- name: Upload coverage to Codecov
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: codecov/codecov-action@v6
with:
files: ./coverage/lcov.info
fail_ci_if_error: true
use_oidc: true
deploy-dry-run:
needs:
- quality
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Set up Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ env.BUN_VERSION }}
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Build deployment bundle without publishing
run: bunx wrangler deploy --dry-run --keep-vars --message "CI dry run for ${GITHUB_SHA}"