Skip to content

Update test.yaml

Update test.yaml #4

Workflow file for this run

name: Matrix Test
on:
push:
jobs:
build-matrix:
runs-on: windows-latest
defaults:
run:
shell: powershell
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Matrix
run: |
$params = Get-Content -Path ./params.txt
$aliases = "["
$persons = $params.split("|")
foreach ($person in $persons)
{
$attributes = $person.split(",")
foreach ($attribute in $attributes)
{
# Split the key from the value
$keyAndValue = $attribute.split("=")
$key = $keyAndValue[0]
$value = $keyAndValue[1]
if($key.ToLower() -eq "alias")
{
echo "Testing the following person: $value"
$aliases += '"'
$aliases += $value.Trim()
$aliases += '",'
}
}
}
$aliases = $aliases.Substring(0, $aliases.Length-1)
$aliases += "]"
echo $aliases