forked from DataDog/integrations-core
-
Notifications
You must be signed in to change notification settings - Fork 1
73 lines (61 loc) · 2.43 KB
/
Copy pathmeasure-disk-usage-master.yml
File metadata and controls
73 lines (61 loc) · 2.43 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
name: Measure Disk Usage (Master)
run-name: "Measure Disk Usage (Master) [${{ github.sha }}]"
# Temporary crutch: emits master disk-usage telemetry on .deps/ changes.
# The main measure-disk-usage.yml workflow subscribes to resolve-build-deps via
# workflow_run, but resolve-build-deps no longer runs on master pushes. This
# workflow restores the master telemetry path until measure-disk-usage.yml is
# reworked to subscribe to .deps/ changes directly.
on:
push:
branches:
- master
env:
PYTHON_VERSION: "3.13"
INTEGRATIONS_WHEELS_STORAGE: "stable"
jobs:
measure-disk-usage:
runs-on: ubuntu-22.04
permissions:
contents: read
actions: read
id-token: write
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Get Datadog credentials
id: dd-sts
uses: DataDog/dd-sts-action@2e8187910199bd93129520183c093e19aa585c75 # v1.0.0
with:
policy: integrations-core-api-key
- name: Install ddev
uses: ./.github/actions/setup-ddev
with:
install-mode: local
cache-profile: local-ddev-base
- name: Configure ddev
run: ddev config override
- name: Measure disk usage (Uncompressed)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ddev -v size status --commit "${{ github.sha }}" --format json --to-dd-key ${{ steps.dd-sts.outputs.api_key }}
- name: Measure disk usage (Compressed)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ddev -v size status --commit "${{ github.sha }}" --format json --to-dd-key ${{ steps.dd-sts.outputs.api_key }} --compressed
- name: Upload JSON uncompressed sizes artifact
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with:
name: status_uncompressed.json
path: status_uncompressed.json
if-no-files-found: error
- name: Upload JSON compressed sizes artifact
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with:
name: status_compressed.json
path: status_compressed.json
if-no-files-found: error