This commit is contained in:
Traines 2024-12-07 23:59:04 +00:00
parent a2de274a90
commit 65aae69481
3 changed files with 51 additions and 57 deletions

View file

@ -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

View file

@ -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": [

View file

@ -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