Skip to content

Commit

Permalink
build(github): add github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ruscon committed Nov 14, 2019
1 parent a831321 commit 3340cb2
Show file tree
Hide file tree
Showing 7 changed files with 98 additions and 43 deletions.
2 changes: 0 additions & 2 deletions .env.enc

This file was deleted.

91 changes: 91 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
name: CI

on:
pull_request:
branches:
- master
push:
branches:
- master
- /^greenkeeper.*$/

jobs:
commitlint:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- uses: wagoid/commitlint-github-action@v1.2.2

build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [8.x, 10.x, 12.x, 13.x]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install, lint and coverage
run: |
npm i
npm run lint
npm run coverage:all
env:
GOOGLE_MAPS_API_KEY: ${{ secrets.GOOGLE_MAPS_API_KEY }}
MAP_QUEST_API_KEY: ${{ secrets.MAP_QUEST_API_KEY }}
HERE_APP_ID: ${{ secrets.HERE_APP_ID }}
HERE_APP_CODE: ${{ secrets.HERE_APP_CODE }}

# coveralls:
# needs: [build]
# runs-on: ubuntu-latest
# steps:
# - name: Run coveralls
# run: npm i coveralls && npm run coveralls
## - name: Run coveralls
## uses: coverallsapp/github-action@master
## with:
## github-token: ${{ secrets.GITHUB_TOKEN }}

# coveralls:
# needs: [build]
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v1
# with:
# fetch-depth: 1
# - uses: actions/setup-node@v1
# with:
# node-version: '12.x'
# - name: Run coveralls
# uses: coverallsapp/github-action@master
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}

# publish:
## needs: [commitlint, build, coveralls]
# needs: [commitlint, build]
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v1
# with:
# fetch-depth: 1
# - uses: actions/setup-node@v1
# with:
# node-version: '12.x'
# - name: Publish
# if: github.event_name == 'push' && github.ref == 'refs/heads/master'
# uses: mikeal/merge-release@master
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
save-exact=false
scripts-prepend-node-path=true
package-lock=false
36 changes: 0 additions & 36 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[![Build Status](https://travis-ci.com/goparrot/geocoder.svg?branch=master)](https://travis-ci.com/goparrot/geocoder)
[![Build Status](https://github.com/goparrot/geocoder/workflows/CI/badge.svg?branch=master)](https://github.com/goparrot/geocoder/actions?query=branch%3Amaster+event%3Apush+workflow%3ACI)
[![Coverage Status](https://coveralls.io/repos/github/goparrot/geocoder/badge.svg?branch=master)](https://coveralls.io/github/goparrot/geocoder?branch=master)
[![npm version](https://badge.fury.io/js/%40goparrot%2Fgeocoder.svg)](https://badge.fury.io/js/%40goparrot%2Fgeocoder)
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/) [![Greenkeeper badge](https://badges.greenkeeper.io/goparrot/geocoder.svg)](https://greenkeeper.io/)

# Geocoder

<p align="center">
<a href="https://github.com/goparrot/geocoder" target="blank"><img src="https://upload.wikimedia.org/wikipedia/commons/7/72/OpenStreetMap-Logo-2006.svg" width="354" alt="Geocoder Logo" /></a>
</p>


## Description

**Geocoder** is a Typescript library which helps you build geo-aware applications by
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/goparrot/geocoder"
"url": "https://github.com/goparrot/geocoder.git"
},
"keywords": [
"node",
Expand Down
4 changes: 2 additions & 2 deletions tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"extends": ["tslint:latest", "tslint-config-prettier"],
"rules": {
"deprecation": true,
"no-implicit-dependencies": [true, "dev"],
"no-implicit-dependencies": [true, "dev", "optional"],
"no-submodule-imports": false,
"eofline": false,
"indent": false,
Expand All @@ -21,7 +21,7 @@
"arrow-parens": false,
"object-literal-sort-keys": false,
"no-unused-expression": false,
"max-classes-per-file": [false],
"max-classes-per-file": false,
"variable-name": [false],
"one-line": [false],
"one-variable-per-declaration": [false],
Expand Down

0 comments on commit 3340cb2

Please sign in to comment.