mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-22 22:59: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 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
|
||||
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-integration
|
||||
|
||||
e2e-tests:
|
||||
needs: [unit-tests, integration-tests]
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
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
|
||||
"""
|
||||
# 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
|
||||
# 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-integration
|
||||
#
|
||||
# e2e-tests:
|
||||
# needs: [unit-tests, integration-tests]
|
||||
# runs-on: ubuntu-latest
|
||||
# strategy:
|
||||
# matrix:
|
||||
# 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",
|
||||
"description": "Client for bahn.de public transport APIs.",
|
||||
"version": "6",
|
||||
"version": "6.0.0",
|
||||
"type": "module",
|
||||
"main": "index.js",
|
||||
"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.
|
||||
|
||||
## API
|
||||
|
||||
[API documentation](docs/readme.md)
|
||||
|
||||
|
||||
## Related Projects
|
||||
|
||||
- [hafas-client](https://github.com/public-transport/hafas-client/) – including further related projects
|
||||
|
|
Loading…
Add table
Reference in a new issue