chore(ci): add Agola config
All checks were successful
agola/goveal/Test and lint The run finished successfully
All checks were successful
agola/goveal/Test and lint The run finished successfully
This commit is contained in:
parent
662e5da818
commit
64f37ec224
1 changed files with 51 additions and 0 deletions
51
.agola/config.yml
Normal file
51
.agola/config.yml
Normal file
|
@ -0,0 +1,51 @@
|
||||||
|
version: v0
|
||||||
|
runs:
|
||||||
|
- name: Test and lint
|
||||||
|
tasks:
|
||||||
|
- name: Checkout code
|
||||||
|
runtime:
|
||||||
|
type: pod
|
||||||
|
containers:
|
||||||
|
- image: docker.io/alpine/git
|
||||||
|
steps:
|
||||||
|
- clone:
|
||||||
|
- save_to_workspace:
|
||||||
|
contents:
|
||||||
|
- source_dir: .
|
||||||
|
dest_dir: .
|
||||||
|
paths:
|
||||||
|
- '**'
|
||||||
|
- name: Test
|
||||||
|
runtime:
|
||||||
|
type: pod
|
||||||
|
containers:
|
||||||
|
- image: docker.io/golang:1.19-bullseye
|
||||||
|
steps:
|
||||||
|
- restore_workspace:
|
||||||
|
dest_dir: .
|
||||||
|
- run:
|
||||||
|
name: Install Taskfile
|
||||||
|
command: curl -L https://github.com/go-task/task/releases/latest/download/task_linux_amd64.tar.gz | tar -xvz -C /usr/local/bin task
|
||||||
|
- run:
|
||||||
|
name: Run all tests
|
||||||
|
command: task test
|
||||||
|
depends:
|
||||||
|
- Checkout code
|
||||||
|
|
||||||
|
- name: Lint code
|
||||||
|
runtime:
|
||||||
|
type: pod
|
||||||
|
arch: amd64
|
||||||
|
containers:
|
||||||
|
- image: docker.io/golangci/golangci-lint
|
||||||
|
environment:
|
||||||
|
GO111MODULE: "on"
|
||||||
|
CGO_ENABLED: "0"
|
||||||
|
steps:
|
||||||
|
- restore_workspace:
|
||||||
|
dest_dir: .
|
||||||
|
- run:
|
||||||
|
name: Run golangci-lint
|
||||||
|
command: golangci-lint run -v
|
||||||
|
depends:
|
||||||
|
- Checkout code
|
Loading…
Reference in a new issue