forked from toolshed/abra-bash
31 lines
549 B
YAML
31 lines
549 B
YAML
---
|
|
kind: pipeline
|
|
name: linters
|
|
steps:
|
|
- name: run shellcheck
|
|
image: koalaman/shellcheck-alpine:latest
|
|
commands:
|
|
- shellcheck abra
|
|
|
|
- name: run unit tests
|
|
image: docker:dind
|
|
commands:
|
|
- apk add bats
|
|
- bats test.bats
|
|
|
|
- name: collect code coverage
|
|
image: kcov/kcov:latest
|
|
commands:
|
|
- kcov . abra || true
|
|
|
|
- name: send code coverage report to codecov
|
|
image: plugins/codecov
|
|
settings:
|
|
token:
|
|
from_secret: codecov_token
|
|
required: true
|
|
|
|
trigger:
|
|
branch:
|
|
- main
|