Skip to content
Novus Examples

Explore the test library

Find files, editable templates and browser test targets by what you need to make or test. Explore complete business kits for connected records, templates and expected results.

5297 results

Page 90 of 221; 24 results per page.

Show the canonical directory
Preview of GitHub Actions Deprecated Workflow Commands
yml
772 B
Actual file preview for GitHub Actions Deprecated Workflow Commands

GitHub Actions Deprecated Workflow Commands

A deprecated-syntax workflow: ::set-output, ::set-env and ::add-path markers, a retired runner label, and v2 action pins. Every construct here was removed from the runner, so an upgrade migrator can be scored on whether it rewrites all of them.

File
YML · Github Actions
Preview of GitHub Actions Expression and Function Coverage
yml
1 KB
Actual file preview for GitHub Actions Expression and Function Coverage

GitHub Actions Expression and Function Coverage

An expression-dense workflow: fromJSON-generated matrix axes, hashFiles cache keys, format and join calls, a folded multi-line if condition, and the && / || coalescing idiom that stands in for a ternary. For testing template resolvers before any schema check.

File
YML · Github Actions
Preview of GitHub Actions Matrix Include and Exclude
yml
768 B
Actual file preview for GitHub Actions Matrix Include and Exclude

GitHub Actions Matrix Include and Exclude

The matrix case that expanders get wrong: a 3x3 base grid, two exclude rules, and one include entry that adds a combination and an extra key. Nine minus two plus one is eight jobs, documented in the specs so an expansion can be scored exactly.

File
YML · Github Actions
Preview of GitHub Actions Node Matrix Workflow
yml
668 B
Actual file preview for GitHub Actions Node Matrix Workflow

GitHub Actions Node Matrix Workflow

A GitHub Actions CI workflow with a two-axis build matrix (three Node versions across two runners), an npm cache, and a conditional artifact upload. Six matrix combinations, so a workflow linter or matrix expander has a documented answer to check against.

File
YML · Github Actions
Preview of GitHub Actions on: Key YAML Boolean Trap
yml
720 B
Actual file preview for GitHub Actions on: Key YAML Boolean Trap

GitHub Actions on: Key YAML Boolean Trap

The workflow file that exposes the YAML 1.1 boolean resolver: a bare `on` key becomes True in PyYAML, SnakeYAML and Psych, so a round-trip through those loaders loses the trigger block. The env values repeat the trap with NO, yes and off alongside a quoted control.

File
YML · Github Actions
Preview of GitHub Actions Over-Permissive Token (Policy Target)
yml
568 B
Actual file preview for GitHub Actions Over-Permissive Token (Policy Target)

GitHub Actions Over-Permissive Token (Policy Target)

A schema-valid workflow that should still be rejected on review: permissions: write-all at the workflow level plus three unused write scopes on the job. Nothing here is an exploit; it is the least-privilege finding a policy engine is supposed to raise.

File
YML · Github Actions
Preview of GitHub Actions Reusable Workflow (workflow_call)
yml
830 B
Actual file preview for GitHub Actions Reusable Workflow (workflow_call)

GitHub Actions Reusable Workflow (workflow_call)

The called half of a reusable-workflow pair: a workflow_call trigger with typed inputs, a default value, and a declared output wired to a job output. Pair it with the caller fixture to test cross-workflow input and output resolution.

File
YML · Github Actions
Preview of GitHub Actions Reusable Workflow Caller
yml
698 B
Actual file preview for GitHub Actions Reusable Workflow Caller

GitHub Actions Reusable Workflow Caller

The calling half of a reusable-workflow pair: a workflow_dispatch trigger with a choice input, two jobs that call the same reusable workflow with different arguments, and a third that consumes their outputs through needs.

File
YML · Github Actions
Preview of GitHub Actions Scheduled Workflow with Dispatch Inputs
yml
577 B
Actual file preview for GitHub Actions Scheduled Workflow with Dispatch Inputs

GitHub Actions Scheduled Workflow with Dispatch Inputs

A scheduled workflow with two cron entries plus a manual workflow_dispatch trigger carrying a boolean and a choice input. For testing cron parsers, trigger extraction, and input-type handling in workflow tooling.

File
YML · Github Actions
Preview of GitHub Actions Workflow, Intentionally Invalid
yml
542 B
Actual file preview for GitHub Actions Workflow, Intentionally Invalid

GitHub Actions Workflow, Intentionally Invalid

An intentionally invalid GitHub Actions workflow: well-formed YAML that breaks the workflow schema in four documented ways, no jobs mapping, a scalar `on`, a mapping `runs-on`, and a step carrying both uses and run. For testing that a validator rejects, and reports why.

File
YML · Github Actions
Preview of Gitignore - Escaped #, !, Bracket and Trailing Space
gitignore
416 B
Actual file preview for Gitignore - Escaped #, !, Bracket and Trailing Space

Gitignore - Escaped #, !, Bracket and Trailing Space

Every escape the format defines, including the one nobody expects: a trailing space is stripped from a pattern unless it is backslash-escaped, so `draft\ ` and `draft` ignore different files. Editors that trim trailing whitespace on save silently change what this file means.

File
GITIGNORE · Repo Config · UTF-8
Preview of Gitignore - Globstar, Anchors and Character Classes
gitignore
431 B
Actual file preview for Gitignore - Globstar, Anchors and Character Classes

Gitignore - Globstar, Anchors and Character Classes

One pattern per rule in the gitignore grammar: a leading slash that anchors to the containing directory, the same name unanchored, `**` in all three positions, `?` and `[...]` classes, and a trailing slash that matches only directories. Every line is a separate assertion for a matcher's test suite.

File
GITIGNORE · Repo Config · UTF-8
Preview of Gitignore - Negation After a Directory Exclusion (No Effect)
gitignore
194 B
Actual file preview for Gitignore - Negation After a Directory Exclusion (No Effect)

Gitignore - Negation After a Directory Exclusion (No Effect)

The single most misunderstood rule in the format: once `build/` excludes a directory, git does not descend into it, so `!build/keep.txt` is dead. The file is valid and the behaviour is documented: it is the author's expectation that is wrong, which is exactly why an ignore-matcher must reproduce it rather than being helpful.

File
GITIGNORE · Repo Config · UTF-8
Use case
Config parsingConfig testing+1· Paired fixture
Preview of Gitignore - Node Monorepo With Re-Included Artefacts
gitignore
339 B
Actual file preview for Gitignore - Node Monorepo With Re-Included Artefacts

Gitignore - Node Monorepo With Re-Included Artefacts

A realistic monorepo ignore file that uses `dist/*` rather than `dist/` precisely so the two `!dist/...` re-inclusions below it can work. It also carries the `.env.*` / `!.env.example` and `*.log` / `!logs/retained/*.log` pairs that every ignore-matcher has to order correctly.

File
GITIGNORE · Repo Config · UTF-8
Preview of Gitignore - The Working Form of the Same Negation
gitignore
197 B
Actual file preview for Gitignore - The Working Form of the Same Negation

Gitignore - The Working Form of the Same Negation

The corrected twin: `build/*` excludes the directory's contents instead of the directory, so git still descends and `!build/keep.txt` re-includes the file. The two fixtures differ by two characters and produce opposite results, which makes them a precise pass/fail pair for an ignore engine.

File
GITIGNORE · Repo Config · UTF-8
Use case
Config parsingConfig testing+1· Paired fixture
Preview of GitLab CI !reference Custom YAML Tag
yml
732 B
Actual file preview for GitLab CI !reference Custom YAML Tag

GitLab CI !reference Custom YAML Tag

GitLab's `!reference` custom YAML tag used three ways: inside a script list, as a whole after_script value, and as a whole rules value. A stock YAML 1.2 loader has no constructor for it and raises; GitLab's loader resolves each key path.

File
YML · Gitlab Ci
Preview of GitLab CI Anchors and Extends
yml
814 B
Actual file preview for GitLab CI Anchors and Extends

GitLab CI Anchors and Extends

The two GitLab inheritance mechanisms in one file: YAML anchors with merge keys, which the loader resolves before GitLab sees the document, and `extends`, which GitLab resolves afterwards with a deep merge. Hidden .job keys carry both.

File
YML · Gitlab Ci
Preview of GitLab CI Child and Downstream Triggers
yml
529 B
Actual file preview for GitLab CI Child and Downstream Triggers

GitLab CI Child and Downstream Triggers

Dynamic child pipelines and a cross-project downstream trigger: one job generates a pipeline file as an artifact and a trigger job includes it, while a second trigger job starts a downstream project's pipeline with strategy: depend.

File
YML · Gitlab Ci
Preview of GitLab CI Config, Intentionally Invalid
yml
551 B
Actual file preview for GitLab CI Config, Intentionally Invalid

GitLab CI Config, Intentionally Invalid

An intentionally invalid GitLab CI config: valid YAML with a misspelled `stagess` key, a job naming an undeclared stage, a job with no script, and an `only:` given a bare scalar. For testing that a linter rejects it and names each fault.

File
YML · Gitlab Ci
Preview of GitLab CI Deprecated only/except Syntax
yml
492 B
Actual file preview for GitLab CI Deprecated only/except Syntax

GitLab CI Deprecated only/except Syntax

A deprecated-syntax GitLab CI file using `only`/`except` in both the array and keyed forms, plus the long-retired `type:` keyword. For scoring a migrator that must rewrite all of it to `rules` and `stage`.

File
YML · Gitlab Ci
Preview of GitLab CI Include Resolution
yml
614 B
Actual file preview for GitLab CI Include Resolution

GitLab CI Include Resolution

Five include entries across the four include kinds: local path, local glob, another project at a pinned ref, a remote URL, and a bundled template. For testing include resolvers and dependency graphing without any file actually being fetched.

File
YML · Gitlab Ci
Preview of GitLab CI Parallel Matrix Expansion
yml
448 B
Actual file preview for GitLab CI Parallel Matrix Expansion

GitLab CI Parallel Matrix Expansion

Both GitLab parallelisation forms in one file: a plain `parallel: 4` shard split and a `parallel: matrix` block whose two entries expand to seven combinations. Eleven jobs in total, documented so an expander can be checked exactly.

File
YML · Gitlab Ci
Preview of GitLab CI Rules and Workflow Conditions
yml
643 B
Actual file preview for GitLab CI Rules and Workflow Conditions

GitLab CI Rules and Workflow Conditions

Rule-driven GitLab CI: a workflow block with four ordered conditions ending in `when: never`, plus job rules combining changes patterns, regex tag matching, a null-branch comparison, and a manual allow-failure fallback.

File
YML · Gitlab Ci
Preview of GitLab CI Stages, Needs, and Artifacts
yml
632 B
Actual file preview for GitLab CI Stages, Needs, and Artifacts

GitLab CI Stages, Needs, and Artifacts

A three-stage GitLab CI pipeline with a default block, global variables, artifact expiry, a needs-based DAG, and a coverage-extraction regex. The baseline the other GitLab fixtures vary from.

File
YML · Gitlab Ci