Skip to content

Commit

Permalink
Merge pull request #41 from R-OV-NL/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
Arilith authored Feb 22, 2025
2 parents e7f1b30 + 1a286d6 commit 294beb7
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/main_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ jobs:
- name: Set up Docker
uses: docker/setup-buildx-action@v2

- name: Log in to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

# Build the test stage of the Dockerfile
- name: Rebuild Compose Images
run: docker compose -f docker-compose.test.yml build --no-cache
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ jobs:
with:
token: ${{ secrets.SHARED_PAT }}
submodules: recursive
- name: Log in to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Rebuild Compose Images
run: docker compose -f docker-compose.test.yml build --no-cache
- name: Test image with Docker Compose
Expand Down
14 changes: 11 additions & 3 deletions publish/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@
~ Questions? Email: [email protected]
-->

<h1>
404 - Page not found
</h1>
Below you can find the GTFS-RT feed generated by R-OV's InfoPlus database. <br />
The GTFS used is: <a href="http://gtfs.ovapi.nl/nl/gtfs-nl.zip">gtfs-nl.zip</a>. <br />
The feed is updated every 30 seconds. <br />
<ul>
<li>
<a href="./trainUpdates.json">trainUpdates.json</a>
</li>
<li>
<a href="./trainUpdates.pb">trainUpdates.pb</a>
</li>
</ul>
7 changes: 6 additions & 1 deletion src/Models/General/File.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ export class File {
}

public saveSync(): void {
writeFileSync(`${this._path}/${this._name}`, this._contents);
if(!this.path.endsWith('/') && !this._name.startsWith('/')) {
writeFileSync(`${this._path}/${this._name}`, this._contents);
}
else {
writeFileSync(`${this._path}${this._name}`, this._contents);
}
}
}
2 changes: 1 addition & 1 deletion src/Shared

0 comments on commit 294beb7

Please sign in to comment.