feat(gitlab-sim): 🚀 ajout graph

This commit is contained in:
2026-06-07 20:13:03 +02:00
parent e2334ec12d
commit ff0d9b51f3
15 changed files with 1638 additions and 51 deletions
+30
View File
@@ -0,0 +1,30 @@
stages:
- test
- deploy
# CI/CD catalog components. Without network access or a token the fetches will
# fail and gitlab-sim emits a WARNING for each, then lints the local jobs normally.
include:
# Standard single-segment component path (file layout: templates/sast.yml)
- component: gitlab.com/components/sast/sast@latest
with:
stage: test
# Multi-segment project path (file layout: templates/build.yml)
- component: gitlab.com/my-org/ci-templates/build@v2.0.0
# Directory-based component (file layout: templates/lint/template.yml)
- component: gitlab.example.com/platform/components/lint@main
# Component using a CI variable in the host — cannot be resolved at lint time.
- component: $CI_SERVER_FQDN/internal/ci-catalog/deploy@v1.0
# Mixed includes: project include alongside component
- project: my-org/shared-ci
ref: main
file: /templates/common.yml
deploy-job:
stage: deploy
script:
- echo "deploying"
+33
View File
@@ -0,0 +1,33 @@
stages:
- build
- test
# This pipeline includes templates from another GitLab project.
# Without a token, gitlab-sim warns but still lints the local jobs.
include:
- project: my-group/ci-templates
ref: main
file: /templates/build.yml
- project: my-group/ci-templates
ref: main
file:
- /templates/test-base.yml
- /templates/security.yml
# These are ignored by the fetcher (not project: includes)
- local: .gitlab/common.yml
- template: Auto-DevOps.gitlab-ci.yml
build-job:
stage: build
# extends: .build-template # would reference a job from the remote include
script:
- go build ./...
test-job:
stage: test
script:
- go test ./...
needs:
- build-job