-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (33 loc) · 1.14 KB
/
Test-SourceCode.yml
File metadata and controls
37 lines (33 loc) · 1.14 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
name: Test-SourceCode
on:
workflow_call:
inputs:
Settings:
type: string
description: The settings object as a JSON string.
required: true
permissions:
contents: read # to checkout the repo and create releases on the repo
jobs:
Test-SourceCode:
name: Test-SourceCode (${{ matrix.OSName }})
runs-on: ${{ matrix.RunsOn }}
strategy:
fail-fast: false
matrix:
include: ${{ fromJson(inputs.Settings).TestSuites.SourceCode }}
steps:
- name: Checkout Code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
fetch-depth: 0
- name: Test-SourceCode
uses: PSModule/Test-PSModule@d4d6d1d2ac1d243ca82c9c199371533e8d2220ef # v3.0.8
with:
Debug: ${{ fromJson(inputs.Settings).Debug }}
Prerelease: ${{ fromJson(inputs.Settings).Prerelease }}
Verbose: ${{ fromJson(inputs.Settings).Verbose }}
Version: ${{ fromJson(inputs.Settings).Version }}
WorkingDirectory: ${{ fromJson(inputs.Settings).WorkingDirectory }}
Settings: SourceCode