-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/Koenvh1/ets2-local-radio
- Loading branch information
Showing
74 changed files
with
262 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
name: Check files syntactically valid | ||
|
||
on: | ||
pull_request: | ||
branches: ["master"] | ||
push: | ||
branches: ["master"] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Check whether city files are valid | ||
uses: ali-kamalizade/[email protected] | ||
with: | ||
directory: 'web/cities' | ||
ecmaVersion: 'es5' | ||
files: '*.js' | ||
- name: Check whether station files are valid | ||
uses: ali-kamalizade/[email protected] | ||
with: | ||
directory: 'web/stations' | ||
ecmaVersion: 'es5' | ||
files: '*.js' | ||
- name: Check whether European station logos are present | ||
uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
const fs = require("fs"); | ||
let stationsFile = fs.readFileSync("web/stations/stations-europe.js", "utf8"); | ||
fs.writeFileSync("stations-europe-module.js", stationsFile + "\nexports.stations = stations;"); | ||
let stations = require("./stations-europe-module.js") | ||
let failed = false; | ||
for (const [key, value] of Object.entries(stations.stations)) { | ||
for (const elem of value) { | ||
if (!fs.existsSync("web/" + elem["logo"])) { | ||
console.error("error: " + elem["logo"] + " missing!"); | ||
failed = true; | ||
} | ||
} | ||
} | ||
if (failed) { | ||
process.exit(1); | ||
} | ||
- name: Check whether American station logos are present | ||
uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
const fs = require("fs"); | ||
let stationsFile = fs.readFileSync("web/stations/stations-america.js", "utf8"); | ||
fs.writeFileSync("stations-america-module.js", stationsFile + "\nexports.stations = stations;"); | ||
let stations = require("./stations-america-module.js") | ||
let failed = false; | ||
for (const [key, value] of Object.entries(stations.stations)) { | ||
for (const elem of value) { | ||
if (!fs.existsSync("web/" + elem["logo"])) { | ||
console.error("error: " + elem["logo"] + " missing!"); | ||
failed = true; | ||
} | ||
} | ||
} | ||
if (failed) { | ||
process.exit(1); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,18 +30,6 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Check whether city files are valid | ||
uses: ali-kamalizade/[email protected] | ||
with: | ||
directory: 'web/cities' | ||
ecmaVersion: 'es5' | ||
files: '*.js' | ||
- name: Check whether station files are valid | ||
uses: ali-kamalizade/[email protected] | ||
with: | ||
directory: 'web/stations' | ||
ecmaVersion: 'es5' | ||
files: '*.js' | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v4 | ||
- name: Upload artifact | ||
|
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.
Diff not rendered.
Diff not rendered.
Binary file added
BIN
+30.6 KB
web/stations/images-europe/netherlands/Radio Veronica Goud van Oud.png
Oops, something went wrong.
Oops, something went wrong.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Diff not rendered.
Oops, something went wrong.
Oops, something went wrong.
Diff not rendered.
Oops, something went wrong.
Diff not rendered.
Oops, something went wrong.
Oops, something went wrong.
Diff not rendered.
Diff not rendered.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
File renamed without changes
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file removed
BIN
-32.6 KB
web/stations/images-europe/switzerland-it/A Fine Jazz Gumbo Radio.png
Diff not rendered.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+19.6 KB
web/stations/images-europe/switzerland-it/Radio Morcote International.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Diff not rendered.
Diff not rendered.
Oops, something went wrong.
Diff not rendered.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.