Skip to content

Commit

Permalink
chore: add WIP sentinel workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Mar 6, 2020
1 parent eac1b03 commit 8ce957b
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
39 changes: 39 additions & 0 deletions .github/workflows/sentinel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Generate Sentinel Report

on:
repository_dispatch:
types: generate-sentinel-report

jobs:
build-and-test:
name: Build Project
runs-on: ubuntu-latest
steps:
- name: Check Out Repository
uses: actions/checkout@v2

- name: Install Dependencies
run: npm ci

- name: Run Test Suite
run: npm run generate-test-report

- name: Upload Test Report
uses: actions/upload-artifact@v1
with:
name: report
path: report.json

send-data:
name: Generate Report
needs: build-and-test
runs-on: ubuntu-latest
steps:
- name: Download Report
uses: actions/download-artifact@v1
with:
name: report

- name: Send Data to Sentinel
uses: codebytere/sentinel-client@v1

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"start": "electron .",
"dev": "electron . --debug",
"test": "mocha && standard",
"generate-test-report": "mocha --reporter=json --reporter-options output=report.json",
"generate-test-report": "mocha --reporter=json > report.json",
"package": "npm-run-all package:*",
"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",
"package:win": "electron-packager . --overwrite --platform=win32 --arch=ia32 --out=out --icon=assets/app-icon/win/app.ico",
Expand Down

0 comments on commit 8ce957b

Please sign in to comment.