Skip to content

Commit

Permalink
Replace CI & badges w/ SonarCloud
Browse files Browse the repository at this point in the history
  • Loading branch information
sangaman committed Aug 18, 2023
1 parent 726352f commit aa3dc9a
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 21 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/master.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI Build

on:
push:
branches: [ "master" ]
pull_request:
types: [opened, synchronize, reopened]

jobs:
build:
runs-on: ubuntu-latest

steps:

- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Use Node.js latest
uses: actions/setup-node@v3
with:
node-version: latest

- name: Install
run: |
npm ci
- name: Lint
run: |
npm run lint
- name: Tests & Coverage
run: |
npm run coverage-ci
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# http-jsonrpc-server

[![Build Status](https://travis-ci.org/sangaman/http-jsonrpc-server.svg?branch=master)](https://travis-ci.org/sangaman/http-jsonrpc-server/)
[![Coverage Status](https://coveralls.io/repos/github/sangaman/http-jsonrpc-server/badge.svg?branch=master)](https://coveralls.io/github/sangaman/http-jsonrpc-server?branch=master)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/5f1e5b18def4469eaf22e3bb29a2dfa0)](https://www.codacy.com/app/sangaman/http-jsonrpc-server?utm_source=github.com&utm_medium=referral&utm_content=sangaman/http-jsonrpc-server&utm_campaign=Badge_Grade)
[![dependencies Status](https://david-dm.org/sangaman/http-jsonrpc-server/status.svg)](https://david-dm.org/sangaman/http-jsonrpc-server)
[![devDependencies Status](https://david-dm.org/sangaman/http-jsonrpc-server/dev-status.svg)](https://david-dm.org/sangaman/http-jsonrpc-server?type=dev)
![GitHub Actions Build](https://github.com/sangaman/http-jsonrpc-server/actions/workflows/master.yaml/badge.svg)
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=sangaman_http-jsonrpc-server&metric=coverage)](https://sonarcloud.io/summary/new_code?id=sangaman_http-jsonrpc-server)
[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=sangaman_http-jsonrpc-server&metric=security_rating)](https://sonarcloud.io/summary/new_code?id=sangaman_http-jsonrpc-server)
[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=sangaman_http-jsonrpc-server&metric=reliability_rating)](https://sonarcloud.io/summary/new_code?id=sangaman_http-jsonrpc-server)
[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=sangaman_http-jsonrpc-server&metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=sangaman_http-jsonrpc-server)[![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=sangaman_http-jsonrpc-server&metric=ncloc)](https://sonarcloud.io/summary/new_code?id=sangaman_http-jsonrpc-server)
[![Socket Badge](https://socket.dev/api/badge/npm/package/http-jsonrpc-server)](https://socket.dev/npm/package/http-jsonrpc-server)
[![License: MIT](https://img.shields.io/badge/License-MIT%202.0-brightgreen.svg)](https://opensource.org/licenses/MIT)

- [http-jsonrpc-server](#http-jsonrpc-server)
- [Install](#install)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"scripts": {
"coverage": "c8 npm test",
"coverage-ci": "c8 --reporter=lcov npm test",
"lint": "eslint . ./**/*.js",
"lint": "eslint lib/*.js",
"test": "node --test test/test.js"
},
"repository": {
Expand Down

0 comments on commit aa3dc9a

Please sign in to comment.