File tree 1 file changed +3
-21
lines changed
.github/actions/upload-datadog
1 file changed +3
-21
lines changed Original file line number Diff line number Diff line change 1
- name : Upload tests to Datadog
1
+ name : Upload tests to datadog
2
2
if : always()
3
3
inputs :
4
4
api-key :
7
7
runs :
8
8
using : " composite"
9
9
steps :
10
- - name : Set work dir
11
- shell : bash
12
- run : |
13
- WORK_DIR=${{ runner.temp }}/datadog-ci
14
- mkdir -p $WORK_DIR
15
- echo "WORK_DIR=$WORK_DIR" >> $GITHUB_ENV
16
- # The npm install was taking 30s to 1m, accounting for 20+% of the total
17
- # job time.
18
- - name : Cache datadog-ci
19
- uses : buildjet/cache@v3
20
- with :
21
- path : |
22
- ${{ env.WORK_DIR }}
23
- key : datadog-ci-${{ runner.os }}
24
- restore-keys : |
25
- datadog-ci-${{ runner.os }}-
26
- datadog-ci-
27
10
- shell : bash
28
11
run : |
29
- cd ${{ env.WORK_DIR }}
30
12
owner=${{ github.repository_owner }}
31
13
echo "owner: $owner"
32
14
if [[ $owner != "coder" ]]; then
38
20
echo "No API key provided, skipping..."
39
21
exit 0
40
22
fi
41
- npm install @datadog/datadog-ci@2.10.0
42
- npm x -- datadog-ci junit upload --service coder ./gotests.xml \
23
+ npm install -g @datadog/datadog-ci@2.10.0
24
+ datadog-ci junit upload --service coder ./gotests.xml \
43
25
--tags os:${{runner.os}} --tags runner_name:${{runner.name}}
44
26
env :
45
27
DATADOG_API_KEY : ${{ inputs.api-key }}
You can’t perform that action at this time.
0 commit comments