client-dotnet/.agola/config.yml
Peter Kurfer d8143ffd3a
All checks were successful
agola/client-dotnet/Lint The run finished successfully
fix(tests): start container as part of test fixture
2022-09-26 16:33:59 +02:00

53 lines
No EOL
1.4 KiB
YAML

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"
- 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