Skip to content

Commit

Permalink
Merge pull request #72 from godaddy/actions
Browse files Browse the repository at this point in the history
[dist] Migrate to GitHub Actions
  • Loading branch information
decompil3d committed Oct 5, 2020
2 parents 83baef4 + 1d1566b commit 6379a9c
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 10 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,36 @@
# 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: Node.js CI

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

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [10.x, 12.x, 14.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: npm test
- run: npm run coverage
if: ${{ matrix.node-version == '14.x' }} # only report coverage on latest Node
- name: Coveralls
if: ${{ matrix.node-version == '14.x' }} # only report coverage on latest Node
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
6 changes: 0 additions & 6 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
@@ -1,4 +1,4 @@
[![Build Status](https://travis-ci.org/godaddy/pullie.svg?branch=master)](https://travis-ci.org/godaddy/pullie) [![Coverage Status](https://coveralls.io/repos/github/godaddy/pullie/badge.svg?branch=master)](https://coveralls.io/github/godaddy/pullie?branch=master)
![Node.js CI](https://github.com/godaddy/pullie/workflows/Node.js%20CI/badge.svg) [![Coverage Status](https://coveralls.io/repos/github/godaddy/pullie/badge.svg?branch=master)](https://coveralls.io/github/godaddy/pullie?branch=master)

[![NPM](https://nodei.co/npm/pullie.png?downloads=true&stars=true)](https://nodei.co/npm/pullie/)

Expand Down
5 changes: 2 additions & 3 deletions package.json
Expand Up @@ -29,7 +29,7 @@
"test": "nyc mocha test/unit/*.test.js test/unit/**/*.test.js test/integration/*.test.js",
"dev": "nodemon",
"start": "probot run ./index.js",
"coveralls": "nyc report --reporter=text-lcov | coveralls"
"coverage": "nyc report --reporter=lcov"
},
"dependencies": {
"array-shuffle": "^1.0.1",
Expand All @@ -47,7 +47,6 @@
"devDependencies": {
"acorn": "^8.0.3",
"assume": "^2.0.1",
"coveralls": "^3.1.0",
"eslint": "^7.10.0",
"eslint-config-godaddy": "^4.0.0",
"eslint-plugin-json": "^1.4.0",
Expand All @@ -61,7 +60,7 @@
"smee-client": "^1.2.2"
},
"engines": {
"node": ">= 8.3.0"
"node": ">= 10"
},
"nodemonConfig": {
"exec": "npm start",
Expand Down

0 comments on commit 6379a9c

Please sign in to comment.