-
Notifications
You must be signed in to change notification settings - Fork 228
46 lines (40 loc) · 1.38 KB
/
msi-tests.yaml
File metadata and controls
46 lines (40 loc) · 1.38 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
name: MSI Tests
on:
workflow_call:
inputs:
type:
required: true
type: string
distribution:
required: true
type: string
permissions:
contents: read
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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Download built artifacts
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.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 ./...