-
Notifications
You must be signed in to change notification settings - Fork 0
ci: one composite setup action for every repo-owned workflow; the yaml lint gate runs for real; one loader behind the workflow pins #199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
123852d
ci: one composite setup action for every repo-owned workflow; the yam…
Vivswan 45c5ace
test(docs): pin continue-on-error on the setup composite's steps
Vivswan d3e5d8b
test(docs): narrow the shape projection's comment to what it reads
Vivswan a153f60
ci(auto-format): skip the push when the head moved since the format, …
Vivswan 95dbae8
test(docs): let the head-moved guard controls fail on their own clause
Vivswan bad0d01
ci(auto-format): refuse a format patch that does more than modify tra…
Vivswan b55623e
test(docs): cut the repo-owned workflow pins to the invariants no sin…
Vivswan 7c4cb23
test(docs): pin the setup composite's step shape, continue-on-error i…
Vivswan 99cb081
refactor(ci): cut the workflow pins to their invariants and the setup…
Vivswan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| # The bun setup and the dependency install of every repo-owned workflow job; the caller keeps its own checkout and | ||
| # setup-node, whose options differ per job. | ||
| # install -> --ignore-scripts: scripts.prepare installs lefthook, a git hook no runner uses; "false" (any letter | ||
| # case, as GitHub compares) skips the install for a job that runs a bare script or resolves the lockfile itself | ||
| # yamllint -> "true" installs the pinned yamllint behind `bun run lint:yaml`, which fails a CI run where it is missing | ||
| name: Set up bun | ||
| description: The pinned bun, the locked dependencies unless told not to, and yamllint for the jobs that lint YAML | ||
|
|
||
| inputs: | ||
| install: | ||
| description: '"false" sets up bun alone; anything else runs bun install --frozen-lockfile --ignore-scripts' | ||
| default: "true" | ||
| yamllint: | ||
| description: '"true" installs the pinned yamllint for lint:yaml' | ||
| default: "false" | ||
|
|
||
| runs: | ||
| using: composite | ||
| steps: | ||
| - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0 | ||
| with: | ||
| bun-version-file: .bun-version | ||
| - name: Install dependencies | ||
| if: inputs.install != 'false' | ||
| shell: bash | ||
| run: bun install --frozen-lockfile --ignore-scripts | ||
| # pipx ships on the ubuntu runner image with its bin directory on PATH; a venv of its own leaves the runner's | ||
| # python untouched. | ||
| - name: Install yamllint | ||
| if: inputs.yamllint == 'true' | ||
| shell: bash | ||
| run: pipx install yamllint==1.38.0 |
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
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
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
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
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.