mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 07:09:35 +02:00
fixes
This commit is contained in:
parent
a2de274a90
commit
65aae69481
3 changed files with 51 additions and 57 deletions
101
.github/workflows/test.yml
vendored
101
.github/workflows/test.yml
vendored
|
@ -33,55 +33,54 @@ jobs:
|
||||||
|
|
||||||
- run: npm run lint
|
- run: npm run lint
|
||||||
- run: npm run test-unit
|
- run: npm run test-unit
|
||||||
"""
|
|
||||||
integration-tests:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
node-version:
|
|
||||||
- 16.x
|
|
||||||
- 18.x
|
|
||||||
- 20.x
|
|
||||||
- 22.x
|
|
||||||
steps:
|
|
||||||
- name: checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
- name: setup Node.js v${{ matrix.node-version }}
|
|
||||||
uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: ${{ matrix.node-version }}
|
|
||||||
|
|
||||||
- id: cache-npm
|
# integration-tests:
|
||||||
name: restore npm cache
|
# runs-on: ubuntu-latest
|
||||||
uses: actions/cache@v3
|
# strategy:
|
||||||
with:
|
# matrix:
|
||||||
key: npm-cache-${{ github.ref_name }}
|
# node-version:
|
||||||
path: ${{ env.npm_config_cache }}
|
# - 16.x
|
||||||
- run: npm install
|
# - 18.x
|
||||||
|
# - 20.x
|
||||||
- run: npm run test-integration
|
# - 22.x
|
||||||
|
# steps:
|
||||||
e2e-tests:
|
# - name: checkout
|
||||||
needs: [unit-tests, integration-tests]
|
# uses: actions/checkout@v4
|
||||||
runs-on: ubuntu-latest
|
# - name: setup Node.js v${{ matrix.node-version }}
|
||||||
strategy:
|
# uses: actions/setup-node@v4
|
||||||
matrix:
|
# with:
|
||||||
node-version: [16.x]
|
# node-version: ${{ matrix.node-version }}
|
||||||
steps:
|
#
|
||||||
- name: checkout
|
# - id: cache-npm
|
||||||
uses: actions/checkout@v4
|
# name: restore npm cache
|
||||||
- name: setup Node.js v${{ matrix.node-version }}
|
# uses: actions/cache@v3
|
||||||
uses: actions/setup-node@v4
|
# with:
|
||||||
with:
|
# key: npm-cache-${{ github.ref_name }}
|
||||||
node-version: ${{ matrix.node-version }}
|
# path: ${{ env.npm_config_cache }}
|
||||||
|
# - run: npm install
|
||||||
- id: cache-npm
|
#
|
||||||
name: restore npm cache
|
# - run: npm run test-integration
|
||||||
uses: actions/cache@v3
|
#
|
||||||
with:
|
# e2e-tests:
|
||||||
key: npm-cache-${{ github.ref_name }}
|
# needs: [unit-tests, integration-tests]
|
||||||
path: ${{ env.npm_config_cache }}
|
# runs-on: ubuntu-latest
|
||||||
- run: npm install
|
# strategy:
|
||||||
|
# matrix:
|
||||||
- run: npm run test-e2e
|
# node-version: [16.x]
|
||||||
"""
|
# steps:
|
||||||
|
# - name: checkout
|
||||||
|
# uses: actions/checkout@v4
|
||||||
|
# - name: setup Node.js v${{ matrix.node-version }}
|
||||||
|
# uses: actions/setup-node@v4
|
||||||
|
# with:
|
||||||
|
# node-version: ${{ matrix.node-version }}
|
||||||
|
#
|
||||||
|
# - id: cache-npm
|
||||||
|
# name: restore npm cache
|
||||||
|
# uses: actions/cache@v3
|
||||||
|
# with:
|
||||||
|
# key: npm-cache-${{ github.ref_name }}
|
||||||
|
# path: ${{ env.npm_config_cache }}
|
||||||
|
# - run: npm install
|
||||||
|
#
|
||||||
|
# - run: npm run test-e2e
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "db-vendo-client",
|
"name": "db-vendo-client",
|
||||||
"description": "Client for bahn.de public transport APIs.",
|
"description": "Client for bahn.de public transport APIs.",
|
||||||
"version": "6",
|
"version": "6.0.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"files": [
|
"files": [
|
||||||
|
|
|
@ -38,11 +38,6 @@ There are [community-maintained TypeScript typings available as `@types/hafas-cl
|
||||||
|
|
||||||
For the `/departures` and `/arrivals` endpoints, `DB_API_KEY` and `DB_CLIENT_ID` environment variables for RIS::Boards have to be set.
|
For the `/departures` and `/arrivals` endpoints, `DB_API_KEY` and `DB_CLIENT_ID` environment variables for RIS::Boards have to be set.
|
||||||
|
|
||||||
## API
|
|
||||||
|
|
||||||
[API documentation](docs/readme.md)
|
|
||||||
|
|
||||||
|
|
||||||
## Related Projects
|
## Related Projects
|
||||||
|
|
||||||
- [hafas-client](https://github.com/public-transport/hafas-client/) – including further related projects
|
- [hafas-client](https://github.com/public-transport/hafas-client/) – including further related projects
|
||||||
|
|
Loading…
Add table
Reference in a new issue