-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathexample.yml
38 lines (38 loc) · 1.02 KB
/
example.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
description: Basic usage of the buildevents-orb.
usage:
version: 2.1
orbs:
buildevents: honeycombio/buildevents@0.12.0
shellcheck: circleci/shellcheck@3.2.0
workflows:
ci:
jobs:
- setup
- watch:
requires: ['setup']
- build:
requires: ['setup']
jobs:
setup:
docker:
- image: cimg/base:stable
steps:
- buildevents/start_trace
watch:
docker:
- image: cimg/base:stable
steps:
- buildevents/watch_build_and_finish
build:
docker:
- image: cimg/base:stable
steps:
- buildevents/with_job_span:
steps:
- buildevents/add_context:
field_name: arch
field_value: $(uname -m)
- run: yarn --immutable
- run: >
# buildevents can be used directly for even more spans
buildevents cmd $(echo $CIRCLE_WORKFLOW_ID | sed 's/-//g') $BUILDEVENTS_SPAN_ID yarn-test -- yarn test