-
Notifications
You must be signed in to change notification settings - Fork 237
41 lines (36 loc) · 1.28 KB
/
main.yml
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
name: Run checks
on: [push, pull_request]
jobs:
job-checks:
name: Run checks
runs-on: windows-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Run copyright check
shell: powershell
run: ./scripts/check_copyright.ps1 -NOISY
- name: Run I18n check
shell: powershell
run: ./scripts/check_i18n.ps1 -NOISY
- name: Run spell check
shell: powershell
run: |
# package support for windows is not great; this is ugly, but will do for now
choco install cyg-get --no-progress
cyg-get.bat aspell aspell-en
$env:Path += ";C:\tools\cygwin\bin;"
./scripts/check_spelling.ps1 -NOISY
- name: Run string sort check
shell: powershell
run: ./scripts/check_strings_sorting.ps1 `
-CHECK_LOCALIZED `
-NOISY `
-PATHS ./XenModel/Messages.resx, ./XenModel/FriendlyNames.resx, `
./XenModel/InvisibleMessages.resx, ./XenModel/UnitStrings.resx, `
./XenOvfApi/Content.resx, ./XenOvfApi/Messages.resx; `
if($lastexitcode -eq 0){ `
./scripts/check_strings_sorting.ps1 `
-NOISY `
-PATHS ./Branding/Branding.resx `
}