Shared checks for Holdex repositories.
See ACTIONS.md for detailed action structure and behavior.
- Use a full commit SHA for
uses:and checkout refs in examples. - Replace
<commit-sha>below with the exact commit you want to consume.
This is the primary pattern. First checkout this repository into
.holdex-actions, then call actions from that checked-out path.
name: PR Checks
on:
pull_request:
types: [opened, reopened, synchronize, ready_for_review]
jobs:
checks:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: holdex/github-actions/.github/actions/base/checkout@main
with:
ref: <commit-sha>
- uses: ./.holdex-actions/.github/actions/base/setup-runtime
with:
package-manager: pnpm
- uses: ./.holdex-actions/.github/actions/composed/pr-checks
with:
run-prettier: true
run-markdown: false
run-commits: true
package-manager: pnpm
working-directory: ./packages/my-package # optional, defaults to "."
- name: Run project checks
run: |
pnpm install --frozen-lockfile
pnpm lint
pnpm checkUse base actions directly when you need full control in one job.
name: Checks
on:
pull_request:
types: [opened, reopened, synchronize]
jobs:
checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: holdex/github-actions/.github/actions/base/checkout@main
with:
ref: <commit-sha>
- uses: ./.holdex-actions/.github/actions/base/setup-runtime
with:
package-manager: pnpm
- uses: ./.holdex-actions/.github/actions/base/prettier
with:
package-manager: pnpm
- uses: ./.holdex-actions/.github/actions/base/commit-check
with:
package-manager: pnpmUse reusable workflows when you prefer a stable job-level interface.
name: PR Checks
on:
pull_request:
types: [opened, reopened, synchronize, ready_for_review]
jobs:
checks:
uses: holdex/github-actions/.github/workflows/pr-checks.yml@<commit-sha>Selective checks:
jobs:
checks:
uses: holdex/github-actions/.github/workflows/pr-checks.yml@<commit-sha>
with:
run-prettier: true
run-markdown: false
run-commits: true
package-manager: bunScoped to a subdirectory (e.g. monorepo):
jobs:
checks:
uses: holdex/github-actions/.github/workflows/pr-checks.yml@<commit-sha>
with:
working-directory: ./packages/my-packageSee ACTIONS.md for workflow inputs and detailed behavior of each action.
See CONTRIBUTING.md for development setup and testing flow.