Skip to content

Commit 0052d8e

Browse files
authored
Merge pull request #84 from Nhogs/develop
Develop
2 parents 9f781dd + 8ad6cd1 commit 0052d8e

File tree

5 files changed

+64
-5
lines changed

5 files changed

+64
-5
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
branches:
7+
- develop
8+
- main
9+
10+
jobs:
11+
popoto_tests:
12+
name: Run all tests
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
- uses: actions/setup-node@v2
17+
with:
18+
node-version: 16
19+
cache: "npm"
20+
- name: Install npm dependencies
21+
run: npm ci
22+
- name: Build code
23+
run: npm run build
24+
- name: Run all the tests
25+
run: npm test
26+
- name: publish code coverage on CC
27+
uses: paambaati/codeclimate-action@v3.0.0
28+
env:
29+
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}

.github/workflows/npm-publish.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Node.js Package
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-node@v2
13+
with:
14+
node-version: 16
15+
- run: npm ci
16+
17+
publish-npm:
18+
needs: build
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v2
22+
- uses: actions/setup-node@v2
23+
with:
24+
node-version: 16
25+
registry-url: https://registry.npmjs.org/
26+
- run: npm ci
27+
- run: npm run build
28+
- run: npm publish --access public
29+
env:
30+
NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_AUTOMATION}}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<p align="center"><a href="https://github.com/Nhogs/popoto" target="_blank"><img width="301"src="https://raw.githubusercontent.com/wiki/Nhogs/popoto/img/logo.png"></a></p>
1+
<p align="center"><a href="https://github.com/Nhogs/popoto" target="_blank"><img alt="popoto logo" width="301" src="https://raw.githubusercontent.com/wiki/Nhogs/popoto/img/logo.png"></a></p>
22

3-
[![Build Status](https://app.travis-ci.com/Nhogs/popoto.svg?branch=master)](https://app.travis-ci.com/Nhogs/popoto)
3+
[![CI](https://github.com/nhogs/popoto/actions/workflows/ci.yml/badge.svg)](https://github.com/Nhogs/popoto/actions/workflows/ci.yml)
44
[![npm version](https://img.shields.io/npm/v/popoto.svg)](https://www.npmjs.com/package/popoto)
55
[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
66
[![Maintainability](https://api.codeclimate.com/v1/badges/d00736e10d4c630c2010/maintainability)](https://codeclimate.com/github/Nhogs/popoto/maintainability)

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "popoto",
3-
"version": "3.0.2",
3+
"version": "3.0.3",
44
"description": "Graph based search interface for Neo4j database.",
55
"keywords": [
66
"popoto",

0 commit comments

Comments
 (0)