woodpecker/pipeline/schema/.woodpecker/test-step.yml
Anbraten 0fa271f465
Add json schema and cli lint command (#342)
- Add json schema file
- Add tests to validate sample pipeline files
- Add new command `lint` to cli to test a directory or single file to use correct schema

Example:  `woodpecker-cli lint ./pipeline/schema/.woodpecker/`

---
close #275 
preparation for #276 


Co-authored-by: 6543 <6543@obermui.de>
2021-09-27 02:38:15 +02:00

57 lines
901 B
YAML

pipeline:
image:
image: golang
commands:
- go test
image-pull:
image: golang
pull: true
commands:
- go test
single-command:
image: golang
commands: go test
commands:
image: golang
commands:
- go get
- go test
environment:
image: golang
environment:
- CGO=0
- GOOS=linux
- GOARCH=amd64
commands:
- go test
secrets:
image: docker
commands:
- echo $DOCKER_USERNAME
- echo $DOCKER_PASSWORD
secrets:
- docker_username
- source: docker_prod_password
target: docker_password
group:
group: test
image: golang
commands:
- go test
detached:
image: redis
detach: true
volume:
image: docker
commands:
- docker build --rm -t octocat/hello-world .
volumes:
- /var/run/docker.sock:/var/run/docker.sock