-
Notifications
You must be signed in to change notification settings - Fork 164
39 lines (32 loc) · 1.23 KB
/
validation_mrtk3.yaml
File metadata and controls
39 lines (32 loc) · 1.23 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
name: Code Validation
on:
push:
branches:
- main
- "feature/*"
pull_request:
jobs:
validation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Get Pull Request changes
if: github.event_name == 'pull_request'
run: |
${{ github.workspace }}/Pipelines/Scripts/gitchanges.ps1 -TargetBranch '${{ github.base_ref }}' -OutputFile '${{ runner.temp }}/build/changed_files.txt' -RepoRoot '${{ github.workspace }}'
shell: pwsh
- name: Scoped code validation
if: github.event_name == 'pull_request'
run: |
${{ github.workspace }}/Pipelines/Scripts/validatecode.ps1 -Directory '${{ github.workspace }}' -ChangesFile '${{ runner.temp }}/build/changed_files.txt'
shell: pwsh
- name: Global code validation
if: github.event_name == 'push'
run: |
${{ github.workspace }}/Pipelines/Scripts/validatecode.ps1 -Directory '${{ github.workspace }}'
shell: pwsh
- name: Check changelogs
if: github.event_name == 'pull_request'
run: |
${{ github.workspace }}/Pipelines/Scripts/check-changelogs.ps1 -ChangesFile '${{ runner.temp }}/build/changed_files.txt'
shell: pwsh