build: update dev-dependency esbuild from 0.25.2 to 0.25.3 (#20) #145
This file contains hidden or 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
name: CI | |
on: | |
push: | |
branches: | |
- "*" | |
pull_request: | |
branches: | |
- "*" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
jobs: | |
commit: | |
name: Commit check | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Harden runner | |
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0 | |
with: | |
disable-sudo: true | |
egress-policy: block | |
allowed-endpoints: > | |
bun.sh:443 | |
github.com:443 | |
objects.githubusercontent.com:443 | |
registry.npmjs.org:443 | |
- name: Git checkout | |
if: github.event_name == 'push' | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 1 | |
sparse-checkout: | | |
. | |
src | |
persist-credentials: false | |
- name: Git checkout (full-history) | |
if: github.event_name == 'pull_request' | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
sparse-checkout: | | |
. | |
src | |
ref: ${{ github.head_ref }} | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
persist-credentials: false | |
- name: Set up bun@latest | |
uses: oven-sh/setup-bun@4bc047ad259df6fc24a6c9b0f9a0cb08cf17fbe5 # v2.0.1 | |
- name: Install dependencies | |
run: bun ci | |
- name: Run check (push) | |
if: github.event_name == 'push' | |
run: bunx --bun commitlint --last --verbose | |
- name: Run check (pull_request) | |
if: github.event_name == 'pull_request' | |
run: bunx --bun commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose | |
dependency: | |
name: Dependency check | |
runs-on: ubuntu-24.04 | |
permissions: | |
pull-requests: write | |
steps: | |
- name: Harden runner | |
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0 | |
with: | |
disable-sudo: true | |
egress-policy: block | |
allowed-endpoints: > | |
api.github.com:443 | |
api.securityscorecards.dev:443 | |
github.com:443 | |
- name: Git checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: ${{ github.event_name == 'pull_request' && 1 || 2 }} | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
persist-credentials: false | |
- name: Run check (push) | |
if: github.event_name == 'push' | |
uses: actions/dependency-review-action@ce3cf9537a52e8119d91fd484ab5b8a807627bf8 # v4.6.0 | |
with: | |
allow-licenses: MIT, ISC, CC0-1.0, Apache-2.0, BSD-3-Clause, Unlicense | |
head-ref: ${{ github.sha }} | |
base-ref: ${{ github.event.before }} | |
fail-on-severity: low | |
comment-summary-in-pr: never | |
warn-on-openssf-scorecard-level: 3 | |
- name: Run check (pull_request) | |
if: github.event_name == 'pull_request' | |
uses: actions/dependency-review-action@ce3cf9537a52e8119d91fd484ab5b8a807627bf8 # v4.6.0 | |
with: | |
allow-licenses: MIT, ISC, CC0-1.0, Apache-2.0, BSD-3-Clause, Unlicense | |
fail-on-severity: low | |
comment-summary-in-pr: on-failure | |
warn-on-openssf-scorecard-level: 3 | |
format: | |
name: Format check | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Harden runner | |
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0 | |
with: | |
disable-sudo: true | |
egress-policy: block | |
allowed-endpoints: > | |
bun.sh:443 | |
github.com:443 | |
objects.githubusercontent.com:443 | |
raw.githubusercontent.com:443 | |
registry.npmjs.org:443 | |
- name: Git checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
persist-credentials: false | |
- name: Set up bun@latest | |
uses: oven-sh/setup-bun@4bc047ad259df6fc24a6c9b0f9a0cb08cf17fbe5 # v2.0.1 | |
- name: Install dependencies | |
run: bun ci | |
- name: Run check | |
run: bunx biome ci --reporter=github --max-diagnostics=none --no-errors-on-unmatched | |
spec: | |
name: Spec check | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Harden runner | |
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0 | |
with: | |
disable-sudo: true | |
egress-policy: block | |
allowed-endpoints: > | |
bun.sh:443 | |
cli.codecov.io:443 | |
github.com:443 | |
ingest.codecov.io:443 | |
keybase.io:443 | |
objects.githubusercontent.com:443 | |
registry.npmjs.org:443 | |
storage.googleapis.com:443 | |
- name: Git checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
persist-credentials: false | |
- name: Set up bun@latest | |
uses: oven-sh/setup-bun@4bc047ad259df6fc24a6c9b0f9a0cb08cf17fbe5 # v2.0.1 | |
- name: Install dependencies | |
run: bun ci | |
- name: Run check | |
env: | |
FORCE_COLOR: 3 | |
run: bun test --coverage --coverage-reporter=lcov --coverage-reporter=text --reporter=junit --reporter-outfile=junit.xml | |
- name: Upload lcov | |
uses: codecov/codecov-action@ad3126e916f78f00edff4ed0317cf185271ccc2d # v5.4.2 | |
with: | |
fail_ci_if_error: true | |
- name: Upload test result | |
uses: codecov/test-results-action@f2dba722c67b86c6caa034178c6e4d35335f6706 # v1.1.0 | |
with: | |
fail_ci_if_error: true | |
type: | |
name: Type check | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Harden runner | |
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0 | |
with: | |
disable-sudo: true | |
egress-policy: block | |
allowed-endpoints: > | |
api.github.com:443 | |
bun.sh:443 | |
github.com:443 | |
objects.githubusercontent.com:443 | |
raw.githubusercontent.com:443 | |
registry.npmjs.org:443 | |
- name: Git checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
persist-credentials: false | |
- name: Set up bun@latest | |
uses: oven-sh/setup-bun@4bc047ad259df6fc24a6c9b0f9a0cb08cf17fbe5 # v2.0.1 | |
- name: Install dependencies | |
run: bun ci | |
- name: Run check | |
run: | | |
bunx tsc | |
bunx type-coverage |