Merge pull request #363 from TwitchBronBron/continuous-integration

This commit is contained in:
Neil Burrows 2021-02-12 15:38:57 +00:00 committed by GitHub
commit dacb4dcda2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 1535 additions and 126 deletions

13
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,13 @@
name: build
on: [push, pull_request]
jobs:
ci:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@master
with:
node-version: "14.12.0"
- run: npm ci
- run: npm run validate

10
bsconfig.json Normal file
View File

@ -0,0 +1,10 @@
{
"files": [
"manifest",
"source/**/*.*",
"components/**/*.*",
"images/**/*.*",
"resources/**/*.*",
"locale/**/*.*"
]
}

View File

@ -10,7 +10,6 @@
<field id="overview" type="string" />
<field id="type" type="string" value="Episode" />
<field id="json" type="assocarray" onChange="setFields" />
<function name="loadSeasons" />
</interface>
<script type="text/brightscript" uri="TVEpisodeData.brs" />
</component>

View File

@ -7,7 +7,6 @@
<field id="posterURL" type="string" />
<field id="overview" type="string" />
<field id="json" type="assocarray" onChange="setFields" />
<function name="getPoster" />
</interface>
<script type="text/brightscript" uri="TVSeasonData.brs" />
</component>

1626
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -6,11 +6,12 @@
"directories": {
"test": "tests"
},
"dependencies": {
"devDependencies": {
"brighterscript": "^0.30.1",
"rooibos-cli": "^1.0.1"
},
"devDependencies": {},
"scripts": {
"validate": "npx bsc --copy-to-staging=false --create-package=false",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {

View File

@ -1,6 +1,7 @@
sub Main()
' If the Rooibos files are included in deployment, run tests
'bs:disable-next-line
if (type(Rooibos__Init) = "Function") then Rooibos__Init()
' The main function that runs when the application is launched.