-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcodefresh.yml
44 lines (40 loc) · 916 Bytes
/
codefresh.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
version: "1.0"
fail_fast: true
stages:
- prepare
- test
hooks:
on_elected:
fail_fast: true
steps:
check_config:
title: Check config
image: alpine:3.10
commands:
- test -n "${DATADOG_API_KEY}"
- test -n "${DATADOG_APP_KEY}"
environment:
- DATADOG_API_KEY=${{DATADOG_API_KEY}}
- DATADOG_APP_KEY=${{DATADOG_APP_KEY}}
steps:
clone:
stage: prepare
title: Clone
type: git-clone
repo: ${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}
revision: main
git: github
install-dependencies:
stage: prepare
title: Install dependencies
image: node:15-alpine3.10
working_directory: ${{clone}}
commands:
- npm install
test datadog synthetics:
stage: test
title: Test Datadog Synthetics
image: node:15-alpine3.10
working_directory: ${{clone}}
commands:
- npm run test --