Repository navigation
61 lines (56 loc) · 1.63 KB
/
Copy pathtest-make-command.yml
File metadata and controls
61 lines (56 loc) · 1.63 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
name: Test Make Command - Linux
on:
workflow_call:
inputs:
command:
description: "Make command to run (e.g., test-behavior, check-examples, test-docs)"
required: true
type: string
job_name:
description: "Display name for the job/status check"
required: true
type: string
ref:
description: "Git ref to checkout"
required: false
type: string
cargo_nextest:
description: "Whether to install cargo-nextest"
required: false
type: boolean
default: false
upload_test_results:
description: "Whether to upload nextest test results (for commands that use cargo nextest)"
required: false
type: boolean
default: false
permissions:
contents: read
jobs:
run-make-command:
runs-on: ubuntu-24.04
permissions:
contents: read
id-token: write
timeout-minutes: 90
env:
DD_ENV: "ci"
steps:
- name: Checkout branch
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ inputs.ref }}
- uses: ./.github/actions/dd-token
if: ${{ inputs.upload_test_results }}
- uses: ./.github/actions/setup
with:
rust: true
protoc: true
libsasl2: true
cargo-nextest: ${{ inputs.cargo_nextest }}
datadog-ci: ${{ inputs.upload_test_results }}
cargo-cache: true
- run: make ${{ inputs.command }}
- name: Upload test results
run: scripts/upload-test-results.sh
if: ${{ always() && inputs.upload_test_results }}