chore(deps): Bump valibot from 1.4.1 to 1.4.2 #2018
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 | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| jobs: | |
| format: | |
| name: Format | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup | |
| uses: ./.github/actions/setup | |
| - name: Check formatting | |
| run: pnpm format --check | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup | |
| uses: ./.github/actions/setup | |
| - name: Run linter | |
| run: pnpm lint | |
| typecheck: | |
| name: Type Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup | |
| uses: ./.github/actions/setup | |
| - name: Run type check | |
| run: pnpm typecheck | |
| knip: | |
| name: Knip | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup | |
| uses: ./.github/actions/setup | |
| - name: Run knip | |
| run: pnpm exec knip --reporter github-actions | |
| test: | |
| name: Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup | |
| uses: ./.github/actions/setup | |
| - name: Run tests | |
| run: pnpm test -- --coverage --reporter=default --reporter=github-actions | |
| - name: Upload Coverage Report | |
| if: always() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: coverage-report | |
| path: ./**/coverage/ | |
| retention-days: 30 | |
| test-integration: | |
| name: Integration Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup | |
| uses: ./.github/actions/setup | |
| - name: Run integration tests | |
| run: pnpm test:integration --concurrency 3 -- --coverage --reporter=default --reporter=github-actions | |
| - name: Upload Integration Coverage Report | |
| if: always() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: integration-coverage-report | |
| path: ./**/coverage/ | |
| retention-days: 30 | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup | |
| uses: ./.github/actions/setup | |
| - name: Run build | |
| run: pnpm build | |
| security-audit: | |
| name: Security Audit | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup | |
| uses: ./.github/actions/setup | |
| - name: Run security audit | |
| run: pnpm audit --audit-level=high | |
| bundle-size: | |
| name: Bundle Size | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup | |
| uses: ./.github/actions/setup | |
| - name: Build packages | |
| run: pnpm build | |
| - name: Report bundle sizes | |
| run: | | |
| echo "## Bundle Sizes" >> $GITHUB_STEP_SUMMARY | |
| echo "" >> $GITHUB_STEP_SUMMARY | |
| echo "| Package | Size |" >> $GITHUB_STEP_SUMMARY | |
| echo "|---------|------|" >> $GITHUB_STEP_SUMMARY | |
| for pkg in packages/*/dist; do | |
| if [ -d "$pkg" ]; then | |
| size=$(du -sh "$pkg" 2>/dev/null | cut -f1) | |
| name=$(basename $(dirname "$pkg")) | |
| echo "| $name | $size |" >> $GITHUB_STEP_SUMMARY | |
| fi | |
| done |