gapr/.concourse/branch-validate.yml

65 lines
1.9 KiB
YAML
Raw Normal View History

2023-01-30 21:06:18 +00:00
---
resources:
- name: gapr.git
type: git
icon: github
source:
uri: https://code.icb4dc0.de/prskr/gapr.git
branch: ((branch))
- name: templates.git
type: git
icon: github
source:
uri: https://code.icb4dc0.de/prskr/pipeline-templates.git
jobs:
- name: validate
2023-01-30 21:06:18 +00:00
plan:
- get: gapr.git
trigger: true
- get: templates.git
- task: lint
file: gapr.git/.concourse/tasks/lint.yml
input_mapping: {repo: gapr.git}
on_success:
task: report-success
file: templates.git/tasks/gitea-status.yml
input_mapping: {repo: gapr.git}
vars:
project_path: prskr/gapr
context: concourse-ci/lint/golangci-lint
description: Lint Go files
state: success
on_failure:
task: report-failure
file: templates.git/tasks/gitea-status.yml
input_mapping: {repo: gapr.git}
vars:
project_path: prskr/gapr
context: concourse-ci/lint/golangci-lint
description: Lint Go files
state: failure
- task: test
file: gapr.git/.concourse/tasks/test.yml
privileged: true
input_mapping: {repo: gapr.git}
on_success:
task: report-success
file: templates.git/tasks/gitea-status.yml
input_mapping: {repo: gapr.git}
vars:
project_path: prskr/gapr
context: concourse-ci/test/gotestsum
description: Run unit tests
state: success
on_failure:
task: report-failure
file: templates.git/tasks/gitea-status.yml
input_mapping: {repo: gapr.git}
vars:
project_path: prskr/gapr
context: concourse-ci/test/gotestsum
description: Run unit tests
state: failure