IWS Workflows
Composite action (gate/action.yml) that turns a PR workflow's job results into the one
required status check. Use it as a step, not a reusable workflow: a job that calls a reusable
workflow reports as gate / <inner job>, while a step keeps the caller's job name, gate,
which is what each repo's ruleset requires.
gate:
needs: [changes, test]
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- uses: iwsllc/workflows/gate@v9
with:
draft: ${{ github.event.pull_request.draft }}
needs: ${{ toJSON(needs) }}
require-success: changesFails on drafts (trigger on ready_for_review and converted_to_draft too), on any needs
job that failed or was cancelled, and on any require-success job that didn't succeed.
Skipped jobs otherwise pass.
Composite action (setup-pnpm/action.yml) used by the reusable workflows above to install pnpm.
It wraps pnpm/action-setup@v6 (standalone) and caches ~/setup-pnpm under
pnpm-<os>-<arch>-<version>, so a run on a known version skips the registry download.
steps:
- uses: actions/checkout@v6
- uses: iwsllc/workflows/setup-pnpm@v9
with:
version: '' # optional; defaults to devEngines.packageManager / packageManagerA restored cache is used only if its pnpm --version matches the expected version; otherwise
pnpm installs fresh. Only exact versions are cached; ranges and dist-tags always install.