-
Notifications
You must be signed in to change notification settings - Fork 3.6k
50 lines (46 loc) · 1.65 KB
/
arm-ttk-validations.yaml
File metadata and controls
50 lines (46 loc) · 1.65 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
name: Arm-ttk Validations
on:
pull_request:
paths:
- 'Solutions/**/mainTemplate.json'
- 'Solutions/**/createUiDefinition.json'
permissions:
contents: read
pull-requests: read
jobs:
run-arm-ttk:
runs-on: ubuntu-latest
outputs:
solutionName: ${{ steps.step1.outputs.solutionName }}
mainTemplateChanged: ${{ steps.step1.outputs.mainTemplateChanged }}
createUiChanged: ${{ steps.step1.outputs.createUiChanged }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 10
- shell: pwsh
id: step1
name: Identify Changes in PR
run: |
try {
Set-PSRepository PSGallery -InstallationPolicy Trusted
Install-Module powershell-yaml -Force
./.script/package-automation/arm-ttk-tests.ps1
}
catch {
Write-Error "Failed to run ARM-TTK tests: $_"
exit 1
}
- uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0
id: publishGithubPackage
name: Run ARM-TTK
if: ${{ success() && steps.step1.outputs.solutionName != '' && (steps.step1.outputs.mainTemplateChanged == 'true' || steps.step1.outputs.createUiChanged == 'true') }}
with:
context: .
file: ./.github/actions/Dockerfile
push: false
provenance: false
build-args: |
SolutionName=${{ steps.step1.outputs.solutionName }}
mainTemplateChanged=${{ steps.step1.outputs.mainTemplateChanged }}
createUiChanged=${{ steps.step1.outputs.createUiChanged }}