Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
traines-source committed Dec 7, 2024
1 parent a2de274 commit 65aae69
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 57 deletions.
101 changes: 50 additions & 51 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down
5 changes: 0 additions & 5 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 65aae69

Please sign in to comment.