client-dotnet/.agola/config.yml

53 lines
1.4 KiB
YAML
Raw Permalink Normal View History

2022-09-26 13:15:26 +00:00
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
TESTCONTAINERS_RYUK_DISABLED: "true"
2022-09-26 13:15:26 +00:00
- 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