Skip to content

Commit

Permalink
Create github actions test config
Browse files Browse the repository at this point in the history
  • Loading branch information
chdefrene committed Apr 12, 2020
1 parent f005fe0 commit 904e0ac
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 5 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
7 changes: 2 additions & 5 deletions .idea/workspace.xml

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

0 comments on commit 904e0ac

Please sign in to comment.