dtmt/.ci/pipelines/pr.yml
Lucas Schwiderski feff4b83be
All checks were successful
lint/clippy Checking for common mistakes and opportunities for code improvement
build/msvc Build for the target platform: msvc
build/linux Build for the target platform: linux
feat(ci): Implement pipeline for PRs
This includes using Gitea's Commit Status API to add checks to the PR
UI.
2023-03-30 10:42:00 +02:00

49 lines
891 B
YAML

---
# The actual CI pipeline that is run per branch
resources:
- name: repo
type: git
source:
uri: https://git.sclu1034.dev/bitsquid_dt/dtmt
branch: ((pr.head.ref))
jobs:
- name: clippy
plan:
- get: repo
trigger: true
- load_var: ref
file: repo/.git/ref
- task: check
file: repo/.ci/tasks/clippy.yml
vars:
ref: ((.:ref))
gitea_api_key: ((gitea_api_key))
- name: build-msvc
plan:
- get: repo
trigger: true
- load_var: ref
file: repo/.git/ref
- task: build
file: repo/.ci/tasks/build.yml
vars:
target: msvc
ref: ((.:ref))
gitea_api_key: ((gitea_api_key))
- name: build-linux
plan:
- get: repo
trigger: true
- load_var: ref
file: repo/.git/ref
- task: build
file: repo/.ci/tasks/build.yml
vars:
target: linux
ref: ((.:ref))
gitea_api_key: ((gitea_api_key))