Skip to content

CI (1542/merge): chore(deps): update dependency @types/node to v20.14.14 #2824

CI (1542/merge): chore(deps): update dependency @types/node to v20.14.14

CI (1542/merge): chore(deps): update dependency @types/node to v20.14.14 #2824

Workflow file for this run

name: CI
run-name: '${{ github.workflow }} (${{ github.ref_name }}): ${{ github.event.pull_request.title }}'
on:
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
env:
NODE_VERSION: '18'
# Declare default permissions as read only.
permissions: read-all
jobs:
setup:
name: Setup
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
pull-requests: read
outputs:
typescript: ${{ steps.filter.outputs.typescript }}
renovate-config: ${{ steps.filter.outputs.renovate-config }}
if: ${{ !github.event.pull_request.draft }}
steps:
- name: Checkout Repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Initialize
uses: ./.github/actions/setup-bun
- name: Check diff targets by path filters
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
id: filter
with:
filters: |
typescript:
- 'pnpm-lock.yaml'
- '**/tsconfig*.json'
- '**/*.ts'
- '**/*.tsx'
renovate-config:
- '.github/renovate.json'
renovate-config-lint:
name: Renovate config lint
runs-on: ubuntu-latest
timeout-minutes: 5
needs: [setup]
if: ${{ needs.setup.outputs.renovate-config == 'true' }}
steps:
- name: Checkout Repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
sparse-checkout: |
.github/actions/setup-node-and-pnpm/action.yml
.github/renovate.json
package.json
pnpm-lock.yaml
prettier.config.mjs
sparse-checkout-cone-mode: false
- name: Initialize
uses: ./.github/actions/setup-node-and-pnpm
with:
node-version: ${{ env.NODE_VERSION }}
- name: Check format by Prettier
run: pnpm exec prettier --check .github/renovate.json
- name: Validate Renovate config
run: pnpm --package renovate dlx renovate-config-validator --strict
lint:
name: Lint
runs-on: ubuntu-latest
timeout-minutes: 3
needs: [setup]
steps:
- name: Checkout Repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Initialize
uses: ./.github/actions/setup-bun
- name: Run format check
run: bun run lint:prettier
- name: Run lint
run: bun run lint:eslint
typecheck:
name: Type check
runs-on: ubuntu-latest
timeout-minutes: 3
needs: [setup]
if: ${{ needs.setup.outputs.typescript == 'true' }}
steps:
- name: Checkout Repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Initialize
uses: ./.github/actions/setup-bun
- name: Run type check
run: bun run typecheck
test:
name: Test
runs-on: ubuntu-latest
timeout-minutes: 5
needs: [lint, typecheck]
if: ${{ !(failure() || contains(needs.*.result, 'cancelled')) }}
steps:
- name: Checkout Repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Initialize
uses: ./.github/actions/setup-bun
- name: Run test
run: bun run test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true