nurse/.concourse/branch-validate.yml

69 lines
2 KiB
YAML
Raw Normal View History

2022-09-27 20:19:27 +00:00
---
resources:
2022-12-30 20:53:33 +00:00
- name: nurse.git
type: git
icon: github
source:
uri: https://code.icb4dc0.de/prskr/nurse.git
branch: ((branch))
2022-09-27 20:19:27 +00:00
2022-12-31 11:18:22 +00:00
- name: templates.git
type: git
icon: github
source:
uri: https://code.icb4dc0.de/prskr/pipeline-templates.git
2022-09-27 20:19:27 +00:00
jobs:
2022-12-30 20:53:33 +00:00
- name: lint
plan:
- get: nurse.git
trigger: true
2022-12-31 11:18:22 +00:00
- get: templates.git
2022-12-30 20:53:33 +00:00
- task: lint
file: nurse.git/.concourse/tasks/lint.yml
2022-12-31 09:53:37 +00:00
input_mapping: {repo: nurse.git}
2022-12-31 11:18:22 +00:00
on_success:
task: report-success
file: templates.git/tasks/gitea-status.yml
input_mapping: {repo: nurse.git}
vars:
project_path: prskr/nurse
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: nurse.git}
vars:
project_path: prskr/nurse
context: concourse-ci/lint/golangci-lint
description: Lint Go files
state: failure
- name: test
plan:
- get: nurse.git
trigger: true
- get: templates.git
2022-12-31 09:53:37 +00:00
- task: test
file: nurse.git/.concourse/tasks/test.yml
privileged: true
2022-12-31 11:18:22 +00:00
input_mapping: {repo: nurse.git}
on_success:
task: report-success
file: templates.git/tasks/gitea-status.yml
input_mapping: {repo: nurse.git}
vars:
project_path: prskr/nurse
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: nurse.git}
vars:
project_path: prskr/nurse
context: concourse-ci/test/gotestsum
description: Run unit tests
state: failure