forked from stephenmoloney/ci-actions-copyleft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (40 loc) · 1.2 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
env:
global:
- WORKSPACE="/ci-actions/workspace"
- HELM_VERSION="2.12.3"
- PRETTIER_VERSION="1.16.4"
- REMARK_VERSION="6.0.4"
stages:
- yaml-lint
- markdown-lint
- test
jobs:
include:
- stage: yaml-lint
language: bash
image: docker:18-git
before_script:
- docker pull smoloney/ci-actions-prettier:${PRETTIER_VERSION} > /dev/null
script:
- |
docker run --rm -v "${PWD}:${WORKSPACE}" "smoloney/ci-actions-prettier:${PRETTIER_VERSION}" \
--exclude='./test/ci-yamllint/ignore-fail.yaml' \
--file-glob='*.y*ml' \
--exec-args='prettier --check --parser yaml --config ./.prettierrc.yml'
- stage: markdown-lint
language: bash
image: docker:18-git
before_script:
- docker pull smoloney/ci-actions-remark:${REMARK_VERSION} > /dev/null
script:
- |
docker run --rm -v "${PWD}:${WORKSPACE}" "smoloney/ci-actions-remark:${REMARK_VERSION}" \
--file-glob='*.md' \
--exec-args='remark --frail --rc-path ./.remarkrc' \
> /dev/null
- stage: test
language: bash
image: docker:18-git
script:
- bash test.sh