Skip to content
This repository has been archived by the owner on Jul 10, 2022. It is now read-only.

Commit

Permalink
vendor update
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikzogg committed Sep 2, 2021
1 parent 47d4b54 commit f4fcb10
Show file tree
Hide file tree
Showing 8 changed files with 118 additions and 24 deletions.
69 changes: 69 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: CI

on:
push:
pull_request:
schedule:
- cron: '0 0 * * *'

jobs:
node12:
name: Node 12
runs-on: ubuntu-20.04
steps:
- name: checkout
uses: actions/checkout@v2
- name: checkout node
uses: actions/setup-node@v2
with:
node-version: '12'
- run: npm install
- run: npm run build
- run: npm run cs
- run: npm test -- --coverage --no-cache
- run: npm run infection
env:
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
node14:
name: Node 14
runs-on: ubuntu-20.04
steps:
- name: checkout
uses: actions/checkout@v2
- name: checkout node
uses: actions/setup-node@v2
with:
node-version: '14'
- run: npm install
- run: npm run build
- run: npm run cs
- run: npm test -- --coverage --no-cache
- run: npm run infection
env:
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
node16:
name: Node 16
runs-on: ubuntu-20.04
steps:
- name: checkout
uses: actions/checkout@v2
- name: checkout node
uses: actions/setup-node@v2
with:
node-version: '16'
- run: npm install
- run: npm run build
- run: npm run cs
- run: npm test -- --coverage --no-cache
- run: npm run infection
env:
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
- name: coveralls.io
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: sonarcloud.io
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
20 changes: 18 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,35 @@
# psr-log

[![CI](https://github.com/chubbyjs/psr-log/workflows/CI/badge.svg?branch=master)](https://github.com/chubbyjs/psr-log/actions?query=workflow%3ACI)
[![Coverage Status](https://coveralls.io/repos/github/chubbyjs/psr-log/badge.svg?branch=master)](https://coveralls.io/github/chubbyjs/psr-log?branch=master)
[![Infection MSI](https://badge.stryker-mutator.io/github.com/chubbyjs/psr-log/master)](https://dashboard.stryker-mutator.io/reports/github.com/chubbyjs/psr-log/master)

[![bugs](https://sonarcloud.io/api/project_badges/measure?project=chubbyjs_psr-log&metric=bugs)](https://sonarcloud.io/dashboard?id=chubbyjs_psr-log)
[![code_smells](https://sonarcloud.io/api/project_badges/measure?project=chubbyjs_psr-log&metric=code_smells)](https://sonarcloud.io/dashboard?id=chubbyjs_psr-log)
[![coverage](https://sonarcloud.io/api/project_badges/measure?project=chubbyjs_psr-log&metric=coverage)](https://sonarcloud.io/dashboard?id=chubbyjs_psr-log)
[![duplicated_lines_density](https://sonarcloud.io/api/project_badges/measure?project=chubbyjs_psr-log&metric=duplicated_lines_density)](https://sonarcloud.io/dashboard?id=chubbyjs_psr-log)
[![ncloc](https://sonarcloud.io/api/project_badges/measure?project=chubbyjs_psr-log&metric=ncloc)](https://sonarcloud.io/dashboard?id=chubbyjs_psr-log)
[![sqale_rating](https://sonarcloud.io/api/project_badges/measure?project=chubbyjs_psr-log&metric=sqale_rating)](https://sonarcloud.io/dashboard?id=chubbyjs_psr-log)
[![alert_status](https://sonarcloud.io/api/project_badges/measure?project=chubbyjs_psr-log&metric=alert_status)](https://sonarcloud.io/dashboard?id=chubbyjs_psr-log)
[![reliability_rating](https://sonarcloud.io/api/project_badges/measure?project=chubbyjs_psr-log&metric=reliability_rating)](https://sonarcloud.io/dashboard?id=chubbyjs_psr-log)
[![security_rating](https://sonarcloud.io/api/project_badges/measure?project=chubbyjs_psr-log&metric=security_rating)](https://sonarcloud.io/dashboard?id=chubbyjs_psr-log)
[![sqale_index](https://sonarcloud.io/api/project_badges/measure?project=chubbyjs_psr-log&metric=sqale_index)](https://sonarcloud.io/dashboard?id=chubbyjs_psr-log)
[![vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=chubbyjs_psr-log&metric=vulnerabilities)](https://sonarcloud.io/dashboard?id=chubbyjs_psr-log)

## Description

Common Log Interface ([PHP FIG][2] [PSR-3][3]).

## Requirements

* node: 10
* node: 12

## Installation

Through [NPM](https://www.npmjs.com) as [@chubbyjs/psr-log][1].

```sh
npm i @chubbyjs/psr-log@1.0.2
npm i @chubbyjs/psr-log@1.0.3
```

## Copyright
Expand Down
20 changes: 9 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@chubbyjs/psr-log",
"version": "1.0.2",
"version": "1.0.3",
"description": "Common Log Interface (PHP FIG PSR-3).",
"keywords": [
"psr",
Expand Down Expand Up @@ -40,18 +40,16 @@
"dist"
],
"engines": {
"node": ">=10"
"node": ">=12"
},
"devDependencies": {
"@stryker-mutator/core": "^4.1.0",
"@stryker-mutator/jest-runner": "^4.1.0",
"@types/jest": "^26.0.15",
"coveralls": "^3.1.0",
"jest": "^26.6.1",
"moq.ts": "^6.4.0",
"prettier": "2.1.2",
"ts-jest": "^26.4.3",
"typescript": "^4.0.5"
"@stryker-mutator/core": "^5.3.0",
"@stryker-mutator/jest-runner": "^5.3.0",
"@types/jest": "^27.0.1",
"jest": "^27.1.0",
"prettier": "2.3.2",
"ts-jest": "^27.0.5",
"typescript": "^4.4.2"
},
"publishConfig": {
"access": "public"
Expand Down
9 changes: 9 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
sonar.organization=chubbyjs
sonar.projectKey=chubbyjs_psr-log
sonar.projectName=psr-log

sonar.sources=src
sonar.tests=tests
sonar.language=typescript
sonar.sourceEncoding=UTF-8
sonar.javascript.lcov.reportPaths=coverage/lcov.info
18 changes: 9 additions & 9 deletions stryker.conf.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"$schema": "./node_modules/@stryker-mutator/core/schema/stryker-schema.json",
"packageManager": "npm",
"reporters": [
"clear-text",
"dashboard"
],
"testRunner": "jest",
"coverageAnalysis": "off"
}
"$schema": "./node_modules/@stryker-mutator/core/schema/stryker-schema.json",
"packageManager": "npm",
"reporters": [
"clear-text",
"dashboard"
],
"testRunner": "jest",
"coverageAnalysis": "off"
}
1 change: 1 addition & 0 deletions tests/Logger.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { expect, test } from '@jest/globals';
import AbstractLogger from '../src/AbstractLogger';
import LogLevel from '../src/LogLevel';

Expand Down
3 changes: 2 additions & 1 deletion tests/NullLogger.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import NullLogger from '../src/NullLogger';
import { test } from '@jest/globals';
import LogLevel from '../src/LogLevel';
import NullLogger from '../src/NullLogger';

test('log', () => {
const logger = new NullLogger();
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "es2017",
"target": "es2019",
"module": "commonjs",
"outDir": "dist",
"strict": true,
Expand Down

0 comments on commit f4fcb10

Please sign in to comment.