Skip to content

Commit

Permalink
feat: add badges to README.md (#8)
Browse files Browse the repository at this point in the history
* feat: add code coverage badge to README

* fix: ci

* feat: add coveralls

* fix: ci

* fix: ci

* fix: rename workflow

* fix: rename workflow

* fix: badges

* 1.2.1
  • Loading branch information
sapachev authored Feb 6, 2023
1 parent 2247202 commit d5dc979
Show file tree
Hide file tree
Showing 7 changed files with 861 additions and 15 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/node.js.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Node.js CI
name: Quality Check

on:
push:
Expand All @@ -16,12 +16,19 @@ jobs:

steps:
- uses: actions/checkout@v3

- name: Prepare Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"

- name: Install Dependencies
run: npm ci
- name: Check
run: npm run check

- name: Coveralls GitHub Action
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
5 changes: 5 additions & 0 deletions .nycrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"include": ["lib/**"],
"extension": [".ts"],
"all": true
}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Quality Check](https://github.com/sapachev/error-pages/actions/workflows/ci.yml/badge.svg)](https://github.com/sapachev/error-pages/actions/workflows/ci.yml) [![Coverage Status](https://coveralls.io/repos/github/sapachev/error-pages/badge.svg?branch=main)](https://coveralls.io/github/sapachev/error-pages?branch=main)

## Custom HTTP Error Pages

Lightweight tool to create static HTTP Error Pages in minimalistic adaptive and accessible design with customization and localization support.
Expand Down
1 change: 1 addition & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,5 @@ runContainer
})
.catch((err) => {
runContainer.get<ILogger>(DI_TOKENS.LOGGER).print(Messages.error(MessagesEnum.OVERALL, err));
process.exit(1);
});
Loading

0 comments on commit d5dc979

Please sign in to comment.