-
Notifications
You must be signed in to change notification settings - Fork 231
43 lines (38 loc) · 1.35 KB
/
msi-tests.yaml
File metadata and controls
43 lines (38 loc) · 1.35 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
name: MSI Tests
on:
workflow_call:
inputs:
type:
required: true
type: string
distribution:
required: true
type: string
jobs:
msi-tests:
name: MSI Tests
runs-on: otel-windows-latest-8-cores
strategy:
matrix:
type: ${{ fromJSON(inputs.type) }}
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Download built artifacts
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
with:
name: msi-packages
- name: Set required environment variables for MSI tests
run: |
$ErrorActionPreference = 'Stop'
$alt_config_path = Resolve-Path .\distributions\${{ inputs.distribution }}\config.yaml
Test-Path $alt_config_path
$msi_path = Resolve-Path .\msi\*\*.msi
Test-Path $msi_path
"MSI_TEST_ALTERNATE_CONFIG_FILE=$alt_config_path" | Out-File -FilePath $env:GITHUB_ENV -Append
"MSI_TEST_COLLECTOR_PATH=$msi_path" | Out-File -FilePath $env:GITHUB_ENV -Append
"MSI_TEST_COLLECTOR_SERVICE_NAME=${{ inputs.distribution }}" | Out-File -FilePath $env:GITHUB_ENV -Append
- name: Run the MSI tests
working-directory: tests/msi
run: |
go test -timeout 15m -v ./...