chore(deps): lock file maintenance (packages/number) #75
Workflow file for this run
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 | |
| pull-requests: read | |
| on: | |
| push: | |
| branches: ['main'] | |
| pull_request: | |
| workflow_dispatch: | |
| workflow_call: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| diff: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: ./.github/actions/setup | |
| - run: | | |
| pnpm gen | |
| pnpm fmt | |
| isDiff=$(git --no-pager diff) | |
| if [ -n "$isDiff" ]; then | |
| echo "ββββββββββββββββββββββββββββββββββββββββ" | |
| echo "The following files are not up to date" | |
| echo "ββββββββββββββββββββββββββββββββββββββββ" | |
| echo "" | |
| git diff --name-only \ | |
| | sed 's/^/ - /' | |
| echo "" | |
| echo "ββββββββββββββββββββββββββββββββββββββββ" | |
| echo "Actual diff:" | |
| echo "ββββββββββββββββββββββββββββββββββββββββ" | |
| echo "" | |
| git --no-pager diff | |
| echo "" | |
| echo "::error::Generated or formatted files are out of date. Please run 'pnpm gen' and 'pnpm fmt' locally." | |
| exit 1 | |
| else | |
| echo "No changes detected. All generated files are up to date." | |
| fi | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: ./.github/actions/setup | |
| - run: | | |
| pnpm checks | |
| pnpm lint | |
| pnpm fmt:check | |
| tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: ./.github/actions/setup | |
| - run: | | |
| pnpm test | |
| - uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| typedoc: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: ./.github/actions/setup | |
| - run: pnpm build:docs |