Skip to content

Commit

Permalink
Merge pull request #105 from KSG-IT/feature/add-tests
Browse files Browse the repository at this point in the history
Add tests
  • Loading branch information
chdefrene authored Apr 12, 2020
2 parents 59bab4c + 904e0ac commit 46accfe
Show file tree
Hide file tree
Showing 5 changed files with 1,929 additions and 53 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Electron CI

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
test:
strategy:
matrix:
os: [windows-latest, macos-latest]
# os: [windows-latest, macos-latest, ubuntu-latest] # There seems to be some issues with mocha on ubuntu
node-version: [12.x]

runs-on: ${{ matrix.os }}

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Cache Node.js modules
uses: actions/cache@v1
with:
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
- name: Install dependencies
run: npm ci

- name: Run tests
run: npm test
env:
CI: true
96 changes: 49 additions & 47 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 46accfe

Please sign in to comment.