-
Notifications
You must be signed in to change notification settings - Fork 5
51 lines (51 loc) · 1.44 KB
/
Tests.yaml
File metadata and controls
51 lines (51 loc) · 1.44 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
47
48
49
50
51
name: ⚗️ Tests
on: [pull_request]
jobs:
scriptanalyzer:
permissions:
contents: read
name: PSScriptAnalyzer Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Update ubuntu runner
uses: ./.github/actions/update-ubuntu-runner
id: update-ubuntu-runner
- name: Run PSScriptAnalyzer
shell: pwsh
run: |
$invokeScriptAnalyzerSplat = @{
Path = 'AzureDevOpsPowerShell'
ReportSummary = $true
Recurse = $true
Settings = 'tests/ScriptAnalyzerSettings.psd1'
EnableExit = $true
}
Invoke-ScriptAnalyzer @invokeScriptAnalyzerSplat
pester:
permissions:
contents: read
name: Pester Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Update ubuntu runner
uses: ./.github/actions/update-ubuntu-runner
id: update-ubuntu-runner
- name: Build
shell: pwsh
run: |
./build.ps1 -Task Build -Bootstrap
- name: Run Pester
shell: pwsh
run: |
.github/scripts/pester.ps1
validate-commits:
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Commitsar check
uses: docker://aevea/commitsar