chore(deps): update actions/checkout action to v7 (#223) #795
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 | |
| env: | |
| TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
| TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
| jobs: | |
| diff: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 | |
| - uses: ./.github/actions/setup | |
| - run: | | |
| pnpm sync | |
| 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 sync', '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@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 | |
| - uses: ./.github/actions/setup | |
| - run: | | |
| pnpm build | |
| pnpm checks | |
| pnpm lint | |
| pnpm fmt:check | |
| pnpm typecheck | |
| tests: | |
| runs-on: ubuntu-latest | |
| name: Node.js ${{ matrix.node-version }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node-version: [22, 24, 26] | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 | |
| - uses: ./.github/actions/setup | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - run: | | |
| pnpm build | |
| pnpm test | |
| - uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7 | |
| if: matrix.node-version == 22 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| typedoc: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 | |
| - uses: ./.github/actions/setup | |
| - run: | | |
| pnpm build | |
| pnpm build:docs | |
| preview: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 | |
| - uses: ./.github/actions/setup | |
| - run: | | |
| pnpm build | |
| - name: Release Preview | |
| run: pnpm dlx pkg-pr-new publish './packages/**' --packageManager=npm,pnpm,yarn,bun |