-
Notifications
You must be signed in to change notification settings - Fork 2.1k
46 lines (38 loc) · 1.54 KB
/
validation_mrtk2.yaml
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
name: Code Validation (MRTK2)
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
validation:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Get Pull Request changes
if: github.event_name == 'pull_request'
run: |
./scripts/ci/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: |
./scripts/ci/validatecode.ps1 -Directory '${{ github.workspace }}/Assets' -ChangesFile '${{ runner.temp }}/build/changed_files.txt' -RepoRoot '${{ github.workspace }}'
shell: pwsh
# todo: uncomment when #8944 is implemented
# - name: Scoped asset dependency validation
# if: github.event_name == 'pull_request'
# run: |
# ./scripts/ci/validateassets.ps1 -Directory '${{ github.workspace }}/Assets' -ChangesFile '${{ runner.temp }}/build/changed_files.txt' -RepoRoot '${{ github.workspace }}'
# shell: pwsh
- name: Global code validation
if: github.event_name == 'push'
run: |
./scripts/ci/validatecode.ps1 -Directory '${{ github.workspace }}/Assets'
shell: pwsh
- name: Global asset dependency validation
# todo: uncomment when #8944 is implemented
# if: github.event_name == 'push'
run: |
./scripts/ci/validateassets.ps1 -Directory '${{ github.workspace }}/Assets'
shell: pwsh