Skip to content

Commit

Permalink
feat: check diff in 'build.yaml'
Browse files Browse the repository at this point in the history
  • Loading branch information
KarelZe committed Jan 23, 2024
1 parent e79f1ea commit c3bee07
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,27 @@ jobs:
run: |
.\dist\ms_teams_parser.exe -f ".\forensicsim-data\jane_doe_v_1_4_00_11161\IndexedDB\https_teams.microsoft.com_0.indexeddb.leveldb" -o "jane_doe_v_1_4_00_11161.json"
.\dist\ms_teams_parser.exe -f ".\forensicsim-data\john_doe_v_1_4_00_11161\IndexedDB\https_teams.microsoft.com_0.indexeddb.leveldb" -o "john_doe_v_1_4_00_11161.json"
.\dist\ms_teams_parser.exe -f ".\forensicsim-data\karelze_v_23306_3309_2530_1346\IndexedDB\https_teams.live.com_0.indexeddb.leveldb" -o "karelze.json"
.\dist\ms_teams_parser.exe -f ".\forensicsim-data\mboufahja_v_23231_413_2355_7555\IndexedDB\https_teams.microsoft.com_0.indexeddb.leveldb" -o "mboufahja.json"
.\dist\ms_teams_parser.exe -f ".\forensicsim-data\karelze_v_23306_3309_2530_1346\IndexedDB\https_teams.live.com_0.indexeddb.leveldb" -o "karelze_v_23306_3309_2530_1346.json"
.\dist\ms_teams_parser.exe -f ".\forensicsim-data\mboufahja_v_23231_413_2355_7555\IndexedDB\https_teams.microsoft.com_0.indexeddb.leveldb" -o "mboufahja_v_23231_413_2355_7555.json"
- name: Upload results📲
uses: actions/upload-artifact@v4
with:
name: generated-outputs
path: |
jane_doe_v_1_4_00_11161.json
john_doe_v_1_4_00_11161.json
karelze_v_23306_3309_2530_1346.json
mboufahja_v_23231_413_2355_7555.json
retention-days: 1
- name: Test calling script 🖱️
run: |
python tools/main.py --help
python tools/dump_leveldb.py --help
python tools/dump_localstorage.py --help
python tools/dump_sessionstorage.py --help
- name: Calculate diff 👽
run: |
git diff --no-index --word-diff .\forensicsim-data\expected-result\jane_doe_v_1_4_00_11161.json jane_doe_v_1_4_00_11161.json
git diff --no-index --word-diff .\forensicsim-data\expected-result\john_doe_v_1_4_00_11161.json john_doe_v_1_4_00_11161.json
git diff --no-index --word-diff .\forensicsim-data\expected-result\karelze_v_23306_3309_2530_1346.json karelze_v_23306_3309_2530_1346.json
git diff --no-index --word-diff .\forensicsim-data\expected-result\mboufahja_v_23231_413_2355_7555.json mboufahja_v_23231_413_2355_7555.json
46 changes: 46 additions & 0 deletions test.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
[
{
"displayName": "John Doe",
"email": "[email protected]",
"mri": "8:orgid:54dd27a7-fbb0-4bf0-8208-a4b31a578a3f",
"origin_file": "forensicsim-data/john_doe_v_1_4_00_11161/IndexedDB/https_teams.microsoft.com_0.indexeddb.leveldb",
"record_type": "contact",
"userPrincipalName": "JohnDoe_forensics.im#EXT#@Forensicsim.onmicrosoft.com"
},
{
"displayName": "Admin Im",
"email": "[email protected]",
"mri": "8:orgid:8dd7b0c8-8cf0-489b-93d7-2da2f7061f39",
"origin_file": "forensicsim-data/john_doe_v_1_4_00_11161/IndexedDB/https_teams.microsoft.com_0.indexeddb.leveldb",
"record_type": "contact",
"userPrincipalName": "[email protected]"
},
{
"displayName": "Jane Doe",
"email": "[email protected]",
"mri": "8:orgid:e62b7cec-7379-4d6f-aed7-24b48be68a74",
"origin_file": "forensicsim-data/john_doe_v_1_4_00_11161/IndexedDB/https_teams.microsoft.com_0.indexeddb.leveldb",
"record_type": "contact",
"userPrincipalName": "JaneDoe_forensics.im#EXT#@Forensicsim.onmicrosoft.com"
},
{
"attachments": [],
"cachedDeduplicationKey": "NoneNone",
"clientArrivalTime": null,
"clientmessageid": null,
"composetime": null,
"content": null,
"contenttype": null,
"conversationId": null,
"createdTime": null,
"creator": null,
"isFromMe": null,
"messageKind": null,
"messagetype": null,
"origin_file": "forensicsim-data/john_doe_v_1_4_00_11161/IndexedDB/https_teams.microsoft.com_0.indexeddb.leveldb",
"originalarrivaltime": null,
"properties": {},
"record_type": "message",
"version": null
}
]

0 comments on commit c3bee07

Please sign in to comment.