Skip to content

Commit 8ce957b

Browse files
committed
chore: add WIP sentinel workflow
1 parent eac1b03 commit 8ce957b

File tree

2 files changed

+40
-1
lines changed

2 files changed

+40
-1
lines changed

.github/workflows/sentinel.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Generate Sentinel Report
2+
3+
on:
4+
repository_dispatch:
5+
types: generate-sentinel-report
6+
7+
jobs:
8+
build-and-test:
9+
name: Build Project
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Check Out Repository
13+
uses: actions/checkout@v2
14+
15+
- name: Install Dependencies
16+
run: npm ci
17+
18+
- name: Run Test Suite
19+
run: npm run generate-test-report
20+
21+
- name: Upload Test Report
22+
uses: actions/upload-artifact@v1
23+
with:
24+
name: report
25+
path: report.json
26+
27+
send-data:
28+
name: Generate Report
29+
needs: build-and-test
30+
runs-on: ubuntu-latest
31+
steps:
32+
- name: Download Report
33+
uses: actions/download-artifact@v1
34+
with:
35+
name: report
36+
37+
- name: Send Data to Sentinel
38+
uses: codebytere/sentinel-client@v1
39+

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"start": "electron .",
1010
"dev": "electron . --debug",
1111
"test": "mocha && standard",
12-
"generate-test-report": "mocha --reporter=json --reporter-options output=report.json",
12+
"generate-test-report": "mocha --reporter=json > report.json",
1313
"package": "npm-run-all package:*",
1414
"package:mac": "electron-packager . --overwrite --platform=darwin --arch=x64 --out=out --icon=assets/app-icon/mac/app.icns --osx-sign.identity='Developer ID Application: GitHub' --extend-info=assets/mac/info.plist",
1515
"package:win": "electron-packager . --overwrite --platform=win32 --arch=ia32 --out=out --icon=assets/app-icon/win/app.ico",

0 commit comments

Comments
 (0)