Skip to content
This repository has been archived by the owner on Apr 28, 2020. It is now read-only.

Commit

Permalink
Merge branch 'master' into feature/add-sonarcloud
Browse files Browse the repository at this point in the history
* master: (28 commits)
  Update .travis.yml
  Update nodejs.yml
  Update nodejs.yml
  Update .travis.yml
  Update readme.md
  Add code-Coverage
  Add code-Coverage
  Add code-Coverage
  Update nodejs.yml
  Update nodejs.yml
  Update nodejs.yml
  Update nodejs.yml
  Update nodejs.yml
  Update nodejs.yml
  Update nodejs.yml
  Update nodejs.yml
  Update nodejs.yml
  Update nodejs.yml
  Update nodejs.yml
  Update nodejs.yml
  ...
  • Loading branch information
JohannesFerner committed Oct 2, 2019
2 parents 79435c9 + dd23a3a commit ff64ac2
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 2 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Node CI

on: [push]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x]

steps:
- uses: actions/checkout@master
with:
submodules: true
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install node-gyp
- name: npm install, build
run: |
npm install
npm run build --if-present
- name: npm test
env:
CI: true
API_KEY: ${{ secrets.API_KEY }}
API_SECRET: ${{ secrets.API_SECRET }}
run: API_KEY=$API_KEY API_SECRET=$API_SECRET npm run test

- uses: actions/checkout@master
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.env
node_modules
package-lock.json
.nyc_output
coverage
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,20 @@
},
"scripts": {
"lint": "standard",
"test": "ava"
"test": "nyc --reporter=lcov --reporter=text-summary ava"
},
"dependencies": {
"debug": "^4.1.1",
"ffi-napi": "^2.4.5",
"got": "^9.6.0",
"node-gyp": "^5.0.4",
"ref-napi": "^1.4.1"
},
"devDependencies": {
"@pgaubatz/uuid": "^0.1.0",
"ava": "^2.2.0",
"dotenv": "^8.0.0",
"nyc": "^14.1.1",
"standard": "^13.0.0"
},
"files": [
Expand Down
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# fiskaly KassenSichV client for Node.js

[![Build Status](https://travis-ci.org/fiskaly/fiskaly-kassensichv-client-node.svg?branch=master)](https://travis-ci.org/fiskaly/fiskaly-kassensichv-client-node)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=fiskaly_fiskaly-kassensichv-client-node&metric=alert_status)](https://sonarcloud.io/dashboard?id=fiskaly_fiskaly-kassensichv-client-node)

The fiskaly KassenSichV client is an HTTP client that is needed<sup>[1](#fn1)</sup> for accessing the [kassensichv.io](https://kassensichv.io) API that implements a cloud-based, virtual **CTSS** (~Certified~ Technical Security System) / **TSE** (Technische Sicherheitseinrichtung) as defined by the German **KassenSichV** ([Kassen­sich­er­ungsver­ord­nung](https://www.bundesfinanzministerium.de/Content/DE/Downloads/Gesetze/2017-10-06-KassenSichV.pdf)).

Expand Down
14 changes: 13 additions & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,21 @@ sonar.projectKey=fiskaly_fiskaly-kassensichv-client-node
sonar.projectName=fiskaly-kassensichv-client-node
sonar.projectVersion=1.0

# =====================================================
# Meta-data for the project
# =====================================================

sonar.links.homepage=https://github.com/fiskaly/fiskaly-kassensichv-client-node
sonar.links.ci=https://travis-ci.org/fiskaly/fiskaly-kassensichv-client-node
sonar.links.scm=https://github.com/fiskaly/fiskaly-kassensichv-client-node
sonar.links.issue=https://github.com/fiskaly/fiskaly-kassensichv-client-node/issues


# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
# This property is optional if sonar.modules is set.
sonar.sources=.

# Encoding of the source code. Default is default system encoding
#sonar.sourceEncoding=UTF-8
sonar.sourceEncoding=UTF-8

sonar.javascript.lcov.reportPaths=coverage/lcov.info

0 comments on commit ff64ac2

Please sign in to comment.