-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpipeline-pull-request.yml
More file actions
95 lines (89 loc) · 2.17 KB
/
pipeline-pull-request.yml
File metadata and controls
95 lines (89 loc) · 2.17 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
resource_types:
- name: pull-request
type: docker-image
source:
repository: teliaoss/github-pr-resource
resources:
- name: dashflow-pr
type: pull-request
check_every: 1m
source:
repository: freewheel/dashflow
access_token: ((dashflow-pr-access-token))
jobs:
- name: lint
plan:
- get: dashflow-pr
trigger: true
version: every
- put: dashflow-pr
params:
path: dashflow-pr
context: Lint
status: PENDING
- task: run-lint
config:
platform: linux
image_resource:
type: docker-image
source: { repository: node, tag: 11 }
inputs:
- name: dashflow-pr
run:
path: sh
args:
- -exc
- |
cd dashflow-pr
yarn install --network-concurrency 1
yarn --silent lint
on_success:
put: dashflow-pr
params:
path: dashflow-pr
context: Lint
status: SUCCESS
on_failure:
put: dashflow-pr
params:
path: dashflow-pr
context: Lint
status: FAILURE
- name: test
plan:
- get: dashflow-pr
trigger: true
version: every
- put: dashflow-pr
params:
path: dashflow-pr
context: Test
status: PENDING
- task: run-test
config:
platform: linux
image_resource:
type: docker-image
source: { repository: node, tag: 11 }
inputs:
- name: dashflow-pr
run:
path: sh
args:
- -exc
- |
cd dashflow-pr
yarn install --network-concurrency 1
yarn --silent test --no-color --verbose
on_success:
put: dashflow-pr
params:
path: dashflow-pr
context: Test
status: SUCCESS
on_failure:
put: dashflow-pr
params:
path: dashflow-pr
context: Test
status: FAILURE