Default
Runs code quality checks applicable to any project: YAML linting and pre-commit hooks.
Import
yaml
include:
- project: hosst/gitlab-pipelines
file: pipelines/default.yamlJobs
precommit
Runs pre-commit hooks against all files. Only runs when a .pre-commit-config.yaml exists in the repository.
| Variable | Default | Description |
|---|---|---|
PRE_COMMIT_ARGS | --all-files --show-diff-on-failure --color always | Arguments passed to pre-commit run |
yamllint
Lints all YAML files using yamllint. Runs on the default branch and git tags, or on any branch when YAML files change.
| Variable | Default | Description |
|---|---|---|
YAMLLINT_PATH | . | Path to lint |
YAMLLINT_ARGS | --format colored | Arguments passed to yamllint |
Workflow
Merge Request pipelines are disabled. All other triggers run normally.