Skip to content

CI (1417/merge): chore(deps): update dependency @vitejs/plugin-react to v4.3.0 #2578

CI (1417/merge): chore(deps): update dependency @vitejs/plugin-react to v4.3.0

CI (1417/merge): chore(deps): update dependency @vitejs/plugin-react to v4.3.0 #2578

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@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
- 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@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
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@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
- 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@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
- 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@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
- name: Initialize
uses: ./.github/actions/setup-bun
- name: Run test
run: bun run test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@6d798873df2b1b8e5846dba6fb86631229fbcb17 # v4.4.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true