-
Notifications
You must be signed in to change notification settings - Fork 11
71 lines (68 loc) · 2.35 KB
/
workflow_call.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
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
name: Integration Tests (Workflow Call)
on:
workflow_dispatch:
inputs:
dd-trace-go-ref:
description: 'The ref to checkout dd-trace-go at'
required: false
type: string
default: main
runs-on:
description: 'The runner to use for the job'
required: false
type: string
default: ubuntu-latest
workflow_call:
inputs:
dd-trace-go-ref:
type: string
required: true
description: 'The ref to checkout dd-trace-go at'
runs-on:
description: 'The runner to use for the job'
required: false
type: string
default: ubuntu-latest
permissions: read-all
concurrency:
group: ${{ github.workflow }}-${{ inputs.dd-trace-go-ref }}
cancel-in-progress: true
jobs:
integration-tests:
runs-on: ${{ inputs.runs-on }}
name: Integration Smoke Tests
steps:
- name: Checkout orchestrion
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
with:
path: orchestrion
repository: DataDog/orchestrion
- name: Checkout dd-trace-go
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
with:
path: dd-trace-go
repository: DataDog/dd-trace-go
ref: ${{ inputs.dd-trace-go-ref }}
- name: Setup go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5
with:
go-version: '1.21'
cache-dependency-path: "**/*.sum"
- name: Setup python
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5
with:
python-version: '>=3.9 <3.13'
cache: pip
cache-dependency-path: orchestrion/_integration-tests/utils/agent/requirements.txt
- name: Install python dependencies
run: pip install -r orchestrion/_integration-tests/utils/agent/requirements.txt
- name: Build orchestrion binary
run: go -C orchestrion/ build -o="./_integration-tests/orchestrion.exe" .
- name: Run Integration Tests
shell: bash
run: |-
set -x
cd orchestrion/_integration-tests
./orchestrion.exe go mod edit -replace=gopkg.in/DataDog/dd-trace-go.v1=../../dd-trace-go
./orchestrion.exe go mod tidy
./orchestrion.exe go test -v -tags=integration,buildtag -shuffle=on ./...