forked from Nictiz/Nictiz-testscripts
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 1.22 KB
/
repo-integrity.yml
File metadata and controls
43 lines (35 loc) · 1.22 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
name: Repo integrity 2
on: pull_request
jobs:
check-integrity:
name: Check the integrity of the repository
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Check XML syntax for the src folder
uses: Ahli/verify-xml-action@v1
with:
path: "src"
- name: Check XML syntax for the output folder
uses: Ahli/verify-xml-action@v1
with:
path: "output"
- name: Check existence of QualificationTokens.json
run: |
if [[ ! -f Configuration/QualificationTokens.json ]]; then
echo ::error::The file Configuration/QualificationTokens.json is gone. This file may never be removed!
exit 1
fi
- name: Check JSON syntax of the Configuration folder
uses: limitusus/json-syntax-check@v2
env:
BASE: ${{ github.workspace }}/Configuration
with:
pattern: "\\.json$"
- name: Check JSON syntax of everything in the output folder
uses: limitusus/json-syntax-check@v2
env:
BASE: ${{ github.workspace }}/output
with:
pattern: "\\.json$"