mirror of
https://github.com/WerWolv/ImHex-Patterns.git
synced 2026-03-28 07:47:02 -05:00
tests: Added tests for constants and tips checking
This commit is contained in:
15
.github/workflows/tests.yml
vendored
15
.github/workflows/tests.yml
vendored
@@ -33,6 +33,10 @@ jobs:
|
||||
${PKGCONF:-} \
|
||||
cmake \
|
||||
make \
|
||||
python3 \
|
||||
python3-pip
|
||||
|
||||
sudo pip install jsonschema
|
||||
|
||||
- name: 🛠️ Build
|
||||
run: |
|
||||
@@ -49,4 +53,13 @@ jobs:
|
||||
- name: 🧪 Perform Unit Tests
|
||||
run: |
|
||||
cd tests/build
|
||||
ctest
|
||||
ctest
|
||||
- name: 📎 Validate JSON Files
|
||||
run: |
|
||||
cd constants
|
||||
for file in ./[!_schema.json]*; do jsonschema -i $file _schema.json; done
|
||||
cd ..
|
||||
|
||||
cd tips
|
||||
for file in ./[!_schema.json]*; do jsonschema -i $file _schema.json; done
|
||||
cd ..
|
||||
|
||||
Reference in New Issue
Block a user