chore(ci): add Agola CI config
Some checks failed
agola/client-dotnet/Lint The run failed

This commit is contained in:
Peter Kurfer 2022-09-26 15:15:26 +02:00
parent 6778e7f8a8
commit a4812683bb
No known key found for this signature in database

52
.agola/config.yml Normal file
View file

@ -0,0 +1,52 @@
version: v0
runs:
- name: Lint
tasks:
- name: Checkout code
runtime:
containers:
- image: docker.io/alpine/git
steps:
- clone:
- save_to_workspace:
contents:
- source_dir: .
dest_dir: .
paths:
- '**'
- name: Run .NET tests
runtime:
containers:
- image: mcr.microsoft.com/dotnet/sdk:6.0
environment:
DOCKER_HOST: tcp://127.0.0.1:2375
INETMOCK_SOCKET: http://127.0.0.1:6767
- image: code.icb4dc0.de/prskr/ci-images/dind:latest
privileged: true
steps:
- restore_workspace:
dest_dir: .
- run:
name: .NET tests
command: |-
dotnet tool restore
dotnet nuke Test
depends:
- Checkout code
- name: Lint protobuf
runtime:
containers:
- image: docker.io/bufbuild/buf:latest
steps:
- restore_workspace:
dest_dir: .
- run:
name: buf lint
command: |-
buf ls-files
buf lint
working_dir: ~/project/api/proto
depends:
- Checkout code