This commit is contained in:
parent
6778e7f8a8
commit
a4812683bb
1 changed files with 52 additions and 0 deletions
52
.agola/config.yml
Normal file
52
.agola/config.yml
Normal 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
|
Loading…
Reference in a new issue