Skip to content

Commit

Permalink
Merge pull request #51 from b2broker/errors
Browse files Browse the repository at this point in the history
Remove the `FetchError` class
  • Loading branch information
vansergen authored Apr 21, 2021
2 parents e38d43f + 23258dc commit f68a453
Show file tree
Hide file tree
Showing 13 changed files with 5,616 additions and 9,613 deletions.
128 changes: 80 additions & 48 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ jobs:

strategy:
matrix:
node-version: [14, 15]
node: [14, 15]

container: node:${{ matrix.node-version }}
container: node:${{ matrix.node }}-buster

steps:
- uses: actions/checkout@master
- uses: actions/checkout@main
with:
fetch-depth: 0

- name: Node.js version
run: node --version
Expand All @@ -27,81 +29,111 @@ jobs:
- name: Tests
run: npm test

release:
needs: test
- name: Prettier
run: npm run prettier

runs-on: ubuntu-latest
- name: ESLint
run: npm run lint

container: node:14-buster
- name: commitlint
run: npm run commitlint:all

coverage_parallel:
needs: [test]

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master
- uses: actions/checkout@main

- uses: actions/setup-node@main
with:
fetch-depth: 0
node-version: ${{ matrix.node }}
check-latest: true

- name: Node.js version
run: node --version
- name: Install dependencies
run: npm ci

- name: npm version
run: npm --version
- name: Coverage
run: npm run coverage

- name: git version
run: git --version
- name: Coveralls Parallel
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: node:${{ matrix.node }}
parallel: true

- name: gpg version
run: gpg --version
coverage_finished:
needs: [test, coverage_parallel]

- name: Install dependencies
run: npm ci
runs-on: ubuntu-latest

- name: Prettier
run: npm run prettier
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true

- name: commitlint
run: npm run commitlint:all
docs:
runs-on: ubuntu-latest

- name: ESLint
run: npm run lint
steps:
- uses: actions/checkout@main
with:
fetch-depth: 0

- name: Publish test
run: npm run publish:test
- uses: actions/setup-node@main
with:
node-version: 16
check-latest: true

- name: Install dependencies
run: npm ci

- name: Docs
run: npm run docs:test
run: npm run docs:ci

- name: npm audit
run: npm audit
- name: Publish
run: npm run publish:test

- name: Vulnerabilities
run: npm run snyk:test
release:
needs: [test, coverage_parallel, coverage_finished]

- name: Coverage
run: npm run coverage
runs-on: ubuntu-latest

- name: Coveralls
uses: coverallsapp/github-action@master
steps:
- uses: actions/checkout@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0

- uses: actions/setup-node@main
with:
node-version: 16
check-latest: true

- name: Install dependencies
run: npm ci

- name: Decrypt PGP key
run: ./.github/scripts/decrypt.sh
env:
PRIVATE_KEY_PASSPHRASE: ${{ secrets.PRIVATE_KEY_PASSPHRASE }}

- name: Setup git
run: ./.github/scripts/git.sh
env:
PGP_KEY_ID: ${{ secrets.PGP_KEY_ID }}

- name: Release
run: npm run release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GIT_COMMITTER_EMAIL: ${{ secrets.GIT_COMMITTER_EMAIL }}
GIT_COMMITTER_NAME: ${{ secrets.GIT_COMMITTER_NAME }}
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Cleanup
run: ./.github/scripts/cleanup.sh

env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GIT_COMMITTER_EMAIL: ${{ secrets.GIT_COMMITTER_EMAIL }}
GIT_COMMITTER_NAME: ${{ secrets.GIT_COMMITTER_NAME }}
NPM_CONFIG_UNSAFE_PERM: true
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
PGP_KEY_ID: ${{ secrets.PGP_KEY_ID }}
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PRIVATE_KEY_PASSPHRASE: ${{ secrets.PRIVATE_KEY_PASSPHRASE }}
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
33 changes: 14 additions & 19 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"branches": "master",
"branches": "main",
"preset": "conventionalcommits",
"presetConfig": {
"types": [
Expand All @@ -21,28 +21,23 @@
{ "type": "ci", "section": "Continuous Integration", "hidden": true }
]
},
"releaseRules": [
{ "breaking": true, "release": "major" },
{ "type": "feat", "release": "minor" },
{ "type": "fix", "release": "patch" },
{ "type": "perf", "release": "patch" },
{ "type": "build", "release": "patch" },
{ "type": "initial", "release": "minor" },
{ "type": "dependencies", "release": "patch" },
{ "type": "peerDependencies", "release": "patch" },
{ "type": "metadata", "release": "patch" }
],
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"releaseRules": [
{ "breaking": true, "release": "major" },
{ "type": "feat", "release": "minor" },
{ "type": "fix", "release": "patch" },
{ "type": "perf", "release": "patch" },
{ "type": "build", "release": "patch" },
{ "type": "docs", "scope": "readme", "release": "patch" },
{ "type": "initial", "release": "minor" },
{ "type": "dependencies", "release": "patch" },
{ "type": "peerDependencies", "release": "patch" },
{ "type": "metadata", "release": "patch" }
]
}
],
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
["@semantic-release/changelog", { "changelogTitle": "# Changelog" }],
"@semantic-release/npm",
["@semantic-release/exec", { "prepareCmd": "npm run docs:build" }],
["@semantic-release/exec", { "prepareCmd": "npm run docs:ci" }],
"@semantic-release/github",
[
"@semantic-release/git",
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Exante ![CI Status](https://github.com/b2broker/exante-node/workflows/CI/badge.svg) [![version](https://img.shields.io/github/package-json/v/b2broker/exante-node?style=plastic)](https://github.com/b2broker/exante-node) [![Known Vulnerabilities](https://snyk.io/test/github/b2broker/exante-node/badge.svg)](https://snyk.io/test/github/b2broker/exante-node) [![Coverage Status](https://coveralls.io/repos/github/b2broker/exante-node/badge.svg?branch=master)](https://coveralls.io/github/b2broker/exante-node?branch=master) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) [![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org) ![GitHub top language](https://img.shields.io/github/languages/top/b2broker/exante-node) ![node version](https://img.shields.io/node/v/exante) ![npm downloads](https://img.shields.io/npm/dt/exante) ![License](https://img.shields.io/github/license/b2broker/exante-node)
# Exante ![CI Status](https://github.com/b2broker/exante-node/workflows/CI/badge.svg) [![version](https://img.shields.io/github/package-json/v/b2broker/exante-node?style=plastic)](https://github.com/b2broker/exante-node) [![Known Vulnerabilities](https://snyk.io/test/github/b2broker/exante-node/badge.svg)](https://snyk.io/test/github/b2broker/exante-node) [![Coverage Status](https://coveralls.io/repos/github/b2broker/exante-node/badge.svg?branch=main)](https://coveralls.io/github/b2broker/exante-node?branch=main) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) [![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org) ![GitHub top language](https://img.shields.io/github/languages/top/b2broker/exante-node) ![node version](https://img.shields.io/node/v/exante) ![npm downloads](https://img.shields.io/npm/dt/exante) ![License](https://img.shields.io/github/license/b2broker/exante-node)

Node.js library for Exante's [API](https://api-live.exante.eu/api-docs/).

Expand Down
1 change: 0 additions & 1 deletion index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export * from "./src/error";
export * from "./src/stream";
export * from "./src/rest";
Loading

0 comments on commit f68a453

Please sign in to comment.