Skip to content
Permalink
Browse files

Added github actions (#35)

* Added github actions in favor of travis & azure devops
  • Loading branch information
prefixaut committed Oct 19, 2019
1 parent 3f20ad8 commit 3b9b7f49fb35e89740de4a77851013e19cfa73f2
Showing with 68 additions and 64 deletions.
  1. +52 −0 .github/workflows/nodejs.yml
  2. +0 −41 .travis.yml
  3. +0 −22 azure-pipelines.yml
  4. +15 −0 electron-builder.yaml
  5. +1 −1 package.json
@@ -0,0 +1,52 @@
name: Node CI

on: [push, pull_request, release ]

jobs:
test_unit:
name: Unit Tests with ${{ matrix.node }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [8, 10, 12]
runs-on: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- uses: sergioramos/yarn-actions/install@master
with:
frozen-lockfile: true
- name: Unit Tests & Code Coverage
uses: paambaati/codeclimate-action@v2.2.1
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: npm run coverage
build:
name: Building Application with ${{ matrix.node }} on ${{ matrix.os }}
needs: [ test_unit ]
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: [8, 10, 12]
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- uses: sergioramos/yarn-actions/install@master
with:
frozen-lockfile: true
- name: Build the Application
if: github.event_name != 'release'
run: yarn build --publish=never
- name: Build the Application and Publish
if: github.event_name == 'release'
run: yarn build --publish=always
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

This file was deleted.

This file was deleted.

@@ -0,0 +1,15 @@
win:
publish:
- provider: github
vPrefixedTagName: true
releaseType: draft
linux:
publish:
- provider: github
vPrefixedTagName: true
releaseType: draft
mac:
publish:
- provider: github
vPrefixedTagName: true
releaseType: draft
@@ -1,6 +1,6 @@
{
"name": "splitterino",
"version": "0.1.1",
"version": "0.2.0",
"main": "background.js",
"private": true,
"license": "MIT",

0 comments on commit 3b9b7f4

Please sign in to comment.
You can’t perform that action at this time.