Commit graph

362 commits

Author SHA1 Message Date
Gabe Kangas
500d26be30
Set environment to build nightly tag. Hopefully fixes #2637 2023-01-30 23:33:59 -08:00
Gabe Kangas
6ad0b9fcae
Update gitattributes file 2023-01-30 23:24:40 -08:00
Gabe Kangas
3dda431079
Remove references to webv2 branch in docs and builds 2023-01-27 20:16:47 -08:00
Gabe Kangas
73963d0ca7
Explicitly only commit only updated stories 2023-01-26 16:45:48 -08:00
Gabe Kangas
d9914f3abd
Allow retries on testing container build 2023-01-26 16:28:36 -08:00
Gabe Kangas
b4832c37d3
Commit updated Stories after build 2023-01-26 15:23:25 -08:00
Gabe Kangas
415e5773bb
Generate dynamic storybook stories at build time 2023-01-26 14:18:13 -08:00
renovate[bot]
daaf7616f4
chore(deps): update peter-evans/create-or-update-comment digest to e0e8aa0 2023-01-25 05:20:01 +00:00
Gabe Kangas
57beaacd2c
Allow HLS test to wait for stream changes 2023-01-22 21:07:49 -08:00
renovate[bot]
7889501ce1
chore(deps): update peter-evans/create-or-update-comment digest to 2cabc73 2023-01-18 05:32:26 +00:00
Gabe Kangas
07195fdf93
Increase CI job timeout 2023-01-16 11:36:40 -08:00
Meisam
dd72879d09
Fix HLS automatic test (#2572)
* mv automated test cleanup to tools.sh

check media file exists before streaming in test/ocTestStream.sh
fix automatic test ffmpeg detection
mv trap to tools
mv update_storage_config() to tools
enable S3 test

* fix video file check in test/ocTestStream.sh

* cleanup ci

* mv auto test owncast build-run to start_owncast()

* suppress cleanup errors

* fix style

* fix Browser Test paths

* use pull_request event for Browser Tests

* explicitly mention when test is skipped

* refactor shell scripts
2023-01-11 20:11:13 -08:00
Meisam
64d3c37fb2
improve stream testing script (#2549)
* merge testContent.sh into ocContent.sh

* detect ffmpeg

ffmpeg or ffmpeg.exe in path, current dir, or parent dir

* use ocTestStream in api test

* enable verbose logging for api tests

* log ffmpeg version

* change ffmpeg lookup order

* set path properly for using the local ffmpeg

* rm double space from transcoder error logs

* update tests for new video stream

do not test bitrate

* set test stream target to 127.0.0.1

* log ffmpeg path

* update ffmpeg to v4.4.1

* improve logs

* fix ffmpeg installer script

* fix api test runner

* fix logs

* install fonts

* cleanup

* use ocTestStream.sh for all automated tests

* cleanup ocTestStream.sh

* cleanup test/automated/hls/run.sh

* Fix misspell

* fix ffmpeg installer in automated test runners

* spell fix

* cleanup script

* rev quick api tests

* cleanup tmp paths properly in automated tests

* rm unused ffmpeg package

* cleanup

* fix s3 test

* cache ffmpeg bin for automated tests

* shellcheck allow source

* rm missplaced file if backup fails

* use ffmpeg full path

* set lookup path for shellcheck
2023-01-10 18:50:32 -08:00
Gabe Kangas
a9cf9d08f7
Merge remote-tracking branch 'origin/develop' into webv2 2023-01-09 13:07:45 -08:00
renovate[bot]
c7cbebe838
chore(deps): update docker.io/ubuntu docker tag to v23 (#2562)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-09 10:47:11 -08:00
Gabe Kangas
80ab351cbe
Add performance testing to Cypress results 2023-01-04 22:18:21 -08:00
Meisam
2c6fd67276
set a non-root user for containers (#2496)
* change root user in dockerfile

* build container on push/pr

* grab docker build params from env

* consolidate container build

* rm unused container build workflow/script

* cleanup ci

* set user for earthly container build

* rm ci docker build for develop branch

* checkout full repo for docker builds

* read earthly push from env

* cleanup ci

* rm unsupported option for actions/checkout@v3

* check dockerfile in ci

* add dockerfile build to earthfile

* authenticate to GH only on schedule builds

* accurate name for dev container builder script

* add note to the dockerfile about earthfile

* document dev build process more clearly
2023-01-04 14:15:12 -08:00
renovate[bot]
417fe50a14
chore(deps): update peter-evans/create-or-update-comment digest to 66af805 2023-01-03 02:14:09 +00:00
renovate[bot]
87c6c38a7c
chore(deps): update peter-evans/create-or-update-comment digest to 66af805 2023-01-03 02:14:03 +00:00
Gabe Kangas
a5e5037f5c
Add a link to learning more about Git for newcomers. 2022-12-30 20:15:55 -08:00
Meisam
6f97085285
add Github actions linter to Github actions (#2521)
* add actions linter

* fix actions/checkout args

* trigger actions lint on both yml/yaml

...and other possible changes in workflow
2022-12-28 13:21:09 -08:00
Meisam
389ba36f15
fix breaking change in #2510 2022-12-28 01:11:04 +01:00
Meisam
7c91099461
do not triger bundle web app on docs update (#2510) 2022-12-26 11:30:16 -08:00
renovate[bot]
6e3a009bb7
chore(deps): update docker.io/ubuntu docker tag to v22.10 2022-12-26 04:32:54 +00:00
Meisam
c74d5b4f31
add shellcheck to CI (#2478)
* add shellcheck to ci

* test ci

* install bash for shellcheck

* set globstar for bash

* cleanup shell scripts

* do not ignore automated hls tests

* rm legacy build script

* update shell scripts

* cleanup ci

* Fix misspell

* cleanup ci

* fail on curl error in ci
2022-12-25 19:17:13 -08:00
renovate[bot]
b4d00fba7d
chore(deps): update peter-evans/create-or-update-comment digest to 69c3c2d 2022-12-12 11:09:39 +00:00
renovate[bot]
487e076e85
chore(deps): update peter-evans/create-or-update-comment digest to 69c3c2d 2022-12-12 03:05:04 +00:00
Gabe Kangas
9d540b30bc
Allow for retries of browser tests 2022-12-10 18:33:50 -08:00
renovate[bot]
5a6f2859d8
chore(deps): update peter-evans/create-or-update-comment digest to 927fa78 (#2424)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-09 12:33:00 -08:00
renovate[bot]
7291d62117
chore(deps): update peter-evans/create-or-update-comment digest to 927fa78 2022-12-09 11:16:36 +00:00
Gabe Kangas
f8cbbec858
Change time webv2 docker image is built 2022-12-08 14:35:58 -08:00
Meisam
1558834df2
bump min golang ver to 1.18 (#2412) 2022-12-06 14:31:08 -08:00
renovate[bot]
4dbc84c6fd chore(deps): update actions/checkout action to v3 2022-11-29 17:33:56 -08:00
Meisam
0a8fc6e8c5 validate Nodeinfo response by schema (#2390)
* rm stable: 'false' from actions/setup-go@v3

* adapt tests from #2369

* set undefined as defaultStreamKey

pass adminpass to sendConfigChangeRequest()

* mv getAdminConfig to api/lib/config.js

* npm install --quiet for automated tests

* refactor tests

separate default values from new ones

* test adminpass change

fix defaultStreamKeys test

* fix defaultStreamKeys

* use getAdminStatus

* mv test/automated/lib/config.js to admin.js

* check default hideViewerCount

cleanup

* test more default options in api

erverName
SServerSummary
yp.instanceUrl
FederationConfig.username

* more testing of default config params

* update reference values for api test
2022-11-29 16:05:44 -08:00
Gabe Kangas
ffdda17fff
Additional suplicate action checks 2022-11-23 15:06:51 -08:00
Gabe Kangas
8e2fe17e35
Use skip-duplicate-actions instead of concurrency limit 2022-11-23 15:04:20 -08:00
Gabe Kangas
03f199551d
Retry API tests on failure 2022-11-22 12:56:03 -08:00
Gabe Kangas
d087f296da
Conditionally run workflows only on parent repo 2022-11-19 11:56:20 -08:00
Gabe Kangas
352447e3d4
Web UI frontend automated browser tests (#2223)
* First pass at basic browser tests for #1926

* Run tests against dev web server not go server

* Bundle the web code into the server before running tests

* Move cypress UI tests into its own npm project + add tests

* Add additional tests + wire up with cypress dashboard

* Limit concurrency of workflow jobs

* Temporarily comment out some tests that do not pass in mobile. Will fix later.
2022-11-04 20:04:13 -07:00
Gabe Kangas
0af1db73a4
Revert "Tweak Renovate options for automerge"
This reverts commit 1e0d1575d5.
2022-10-26 19:00:02 -07:00
Gabe Kangas
1e0d1575d5
Tweak Renovate options for automerge 2022-10-26 18:58:47 -07:00
renovate[bot]
a008d8a62f
chore(deps): update peter-evans/create-or-update-comment digest to 5adcb0b (#2240)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-26 16:36:09 -07:00
renovate[bot]
d556deb8f4
chore(deps): update peter-evans/create-or-update-comment digest to 5adcb0b (#2241)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-26 16:35:57 -07:00
renovate[bot]
7652c487fa
chore(deps): update peter-evans/create-or-update-comment digest to 7305482 (#2219)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-20 15:35:19 -07:00
renovate[bot]
cf7d808d96
chore(deps): update peter-evans/create-or-update-comment digest to 7305482 (#2221)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-18 22:34:51 -07:00
Gabe Kangas
8689061498
Do not run chromatic for renovate user 2022-10-17 19:44:05 -07:00
renovate[bot]
5d5ad97f2a
chore(deps): update peter-evans/create-or-update-comment digest to 26db07d (#2218)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-17 00:24:44 -07:00
renovate[bot]
1be99df694
chore(deps): update peter-evans/create-or-update-comment digest to 843e855 (#2215)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-16 23:09:42 -07:00
renovate[bot]
eafa5bbe01
chore(deps): update peter-evans/create-or-update-comment digest to 843e855 (#2216)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-16 23:09:29 -07:00
Gabe Kangas
60805ebed0
Put actual token in workflow so Chromatic will run against PRs 2022-10-16 23:01:22 -07:00
Gabe Kangas
660c95786e
Run chromatic on PRs 2022-10-16 22:46:45 -07:00
Gabe Kangas
c844e98a19
Merge remote-tracking branch 'origin/develop' into webv2 2022-10-12 16:52:05 -07:00
Gabe Kangas
cade15ea1b
Run API tests on pull requests 2022-10-12 15:34:35 -07:00
Gabe Kangas
7fb97c56aa
Merge remote-tracking branch 'origin/develop' into webv2 2022-10-02 21:44:06 -07:00
Gabe Kangas
f7ced7bb58
Fetch all branches in webv2 build 2022-10-02 13:30:49 -07:00
Gabe Kangas
e24b431cfc
Add nightly build of the webv2 branch 2022-10-02 13:11:34 -07:00
luzpaz
a080fa1524
Fix various typos (#2149)
* Fix various typos

Found via `codespell -q 3`

* Commit updated API documentation

Co-authored-by: Owncast <owncast@owncast.online>
2022-09-30 09:42:54 -07:00
Gabe Kangas
4ed563beed
Make linter run on pull_request events 2022-09-21 10:22:44 -07:00
James Young
8ca53c6063
docs: add a new GH PR template for PRs for #2119 (#2133) 2022-09-21 10:04:56 -07:00
Gabe Kangas
f1f85fb3e3
Update link in comment. 2022-09-13 23:08:47 -07:00
renovate[bot]
6110d93acf
Update peter-evans/create-or-update-comment digest to 6fcd282 (#2106)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-12 16:17:14 -07:00
Gabe Kangas
e87ece6711
Mention t-shirts. 2022-09-12 15:33:40 -07:00
Gabe Kangas
a7e8fb6659
Update message 2022-09-12 14:56:12 -07:00
Gabe Kangas
cc0c48a9a5
Add workflow to auto-comment good first issues. 2022-09-12 14:53:14 -07:00
Gabe Kangas
4da4b586cd
Do not allow chromatic to run for renovate 2022-09-10 22:54:04 -07:00
Gabe Kangas
8369c3c045
Run Chromatic snapshots only on changed files. 2022-09-08 16:33:15 -07:00
Gabe Kangas
955201a793
Tweak Chromatic job 2022-09-06 18:03:37 -07:00
Gabe Kangas
da73ed9f20
Hopefully fix issues running CI on remote forks 2022-09-05 12:33:11 -07:00
Gabe Kangas
c0dc2eb707
Run API tests inside Eartlhly 2022-09-04 17:14:44 -07:00
Gabe Kangas
9f550a87d2
Run workflows on PRs + Perform test build 2022-09-03 11:35:46 -07:00
Gabe Kangas
de06005d01
Do not run go linting on web-only changes 2022-08-27 20:30:58 -07:00
Gabe Kangas
10e5d07793
Migrate issue template to be a form 2022-08-27 20:29:04 -07:00
Gabe Kangas
11edc92bba
Update bug-report-feature-request.md 2022-08-27 20:29:03 -07:00
Gabe Kangas
87ca4c9434
Do not run go linting on web-only changes 2022-08-26 14:27:37 -07:00
Gabe Kangas
9a1d1873ac
Migrate issue template to be a form 2022-08-21 22:58:58 -07:00
Gabe Kangas
94d52dde57
Update bug-report-feature-request.md 2022-08-21 16:16:05 -07:00
Gabe Kangas
bf2e3623df
Do not run go linter on web-only changes 2022-08-20 16:27:55 -07:00
Gabe Kangas
8bd222e847
Do not run tests on web-only changes 2022-08-20 12:08:18 -07:00
Gabe Kangas
93480078b3
Do not run API tests on web-only changes 2022-08-20 12:04:23 -07:00
Gabe Kangas
63bf3b773c
Specify branches to auto-build web app on 2022-08-19 22:13:01 -07:00
Gabe Kangas
9749cc96c3
Changes to reflect update to actions/checkout@3 2022-08-16 18:04:28 -07:00
renovate[bot]
fa1c680f6e
Update actions/checkout action to v3 2022-08-16 06:37:48 +00:00
Gabe Kangas
dac42a2da8
Merge remote-tracking branch 'origin/develop' into webv2 2022-08-15 23:25:08 -07:00
Gabe Kangas
41ab4d9fe1
Allow rebasing when bundling web app 2022-08-15 20:41:19 -07:00
Gabe Kangas
b7a13e4dc3
Fix typo 2022-08-15 19:49:18 -07:00
Gabe Kangas
4cd9e22e34
Auto-bundle web app on commits 2022-08-15 19:23:42 -07:00
Gabe Kangas
0e470d205a
Add product definition to repo for reference 2022-08-15 15:05:31 -07:00
Gabe Kangas
d12f25f556
Merge branch 'develop' into webv2 2022-08-09 14:14:45 -07:00
Gabe Kangas
c7a35e9d02
Revert "Change how musl is downloaded/unarchived" as the problem is a
Github problem.

This reverts commit 59fab1b137.
2022-08-04 15:19:43 -07:00
Gabe Kangas
59fab1b137
Change how musl is downloaded/unarchived 2022-08-04 15:08:13 -07:00
Gabe Kangas
ffd24ccccb
Run test builds using recent Go 2022-08-04 08:53:12 -07:00
Gabe Kangas
3951f23b55
Run BSD tests under macos-latest 2022-07-27 14:17:35 -07:00
renovate[bot]
77c11a603b Update docker/setup-qemu-action action to v2 2022-07-24 00:06:25 +00:00
renovate[bot]
64c5580c69
Update github/codeql-action action to v2 2022-07-23 19:49:18 +00:00
Gabe Kangas
f3a16be0dd
Add user detail API + modal. Closes #2002 2022-07-20 22:36:20 -07:00
Gabe Kangas
aead748c0d
Use the race detector when running automated tests. 2022-07-19 21:09:45 -07:00
Gabe Kangas
506d1fa4cf
Merge remote-tracking branch 'origin/develop' into webv2 2022-07-11 21:21:07 -07:00
Gabe Kangas
6b45715724
Set working directory of linter 2022-07-10 17:07:59 -07:00
Gabe Kangas
d47084f257
Hopefully fix the linter error 2022-07-03 11:23:55 -07:00
Gabe Kangas
43aba0a67c
Limit what GitHub actions need to run for specific directories 2022-06-29 14:39:33 -07:00
Gabe Kangas
a28533a7ce
Add Javascript linter step 2022-06-29 14:26:15 -07:00
Gabe Kangas
6ff8c89246
Move to the Eartlhy job for the nightly Docker build. Closes #1953 2022-06-20 08:08:03 -07:00
Gabe Kangas
78c6189c02
First pass at bundling web app into service. Working. 2022-06-19 15:32:42 -07:00
Gabe Kangas
6b22be8cf3
Merge remote-tracking branch 'origin/develop' into webv2 2022-06-19 13:52:22 -07:00
Gabe Kangas
62a580b72c
Use Earthly setup action instead of manually downloading 2022-06-19 10:41:15 -07:00
Gabe Kangas
078462b246
Remove additional branching 2022-06-19 10:32:12 -07:00
Gabe Kangas
a137d7ebb9
Support multi-platform docker builds with qemu 2022-06-18 23:05:50 -07:00
Gabe Kangas
233a2ccb2f
Point to most recent earthly + cd to root on build 2022-06-18 20:46:05 -07:00
Gabe Kangas
fce3672bc1
Add nightly build action that uses Earthly. Another step in #1953 2022-06-18 20:23:23 -07:00
Gabe Kangas
dacfaba32b
Experiment with chromatic to streamline visual UI testing 2022-05-27 14:31:22 -07:00
Gabe Kangas
715504eb69
Merge remote-tracking branch 'origin/develop' into webv2 2022-05-25 22:57:14 -07:00
Gabe Kangas
ed50016bfc
Do not commit built storybook 2022-05-12 17:00:02 -07:00
Gabe Kangas
e0aa5f8522
Use token 2022-05-12 15:22:44 -07:00
Gabe Kangas
2329d3a17d
Send event on commits 2022-05-12 15:12:01 -07:00
Gabe Kangas
72c01e1b9a
Fix web project build errors 2022-05-11 23:31:31 -07:00
Gabe Kangas
b66617961d
Remove old web workflows and add new ones 2022-05-11 20:41:32 -07:00
Gabe Kangas
8638961b59
Add workflow for building storybook 2022-05-11 20:29:31 -07:00
Gabe Kangas
717db25d65
Remove no longer valid browser test 2022-05-09 13:08:08 -07:00
renovate[bot]
3cacdf6804
Update golangci/golangci-lint-action action to v3 (#1821)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-02 09:29:48 -07:00
Gabe Kangas
d1cebb0d88
Increase linter timeout even more to try to fix github workflow error. 2022-05-02 07:01:55 -07:00
Gabe Kangas
e95cf6bc72
Increase linter timeout 2022-05-01 11:53:57 -07:00
Renovate Bot
e7a08759aa
Update actions/upload-artifact action to v3 2022-04-10 16:24:35 +00:00
Renovate Bot
42890950d2
Update actions/setup-node action to v3 2022-04-10 13:51:44 +00:00
Renovate Bot
661b788d3a
Update actions/checkout action to v3 2022-04-10 11:54:39 +00:00
Renovate Bot
5b1b21c729
Update EndBug/add-and-commit action to v9 2022-04-10 07:56:40 +00:00
Renovate Bot
15e054fb82
Update creyD/prettier_action action to v4 2022-04-10 06:15:55 +00:00
renovate[bot]
d4c7f183eb
Update actions/setup-go action to v3 (#1814)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-04 13:52:54 -07:00
Gabe Kangas
d3aa3f87af
doc -> docs as Github needs a specific name 2022-03-19 12:02:34 -07:00
Gabe Kangas
48006d7a79
Fix updated go linter 2022-03-07 11:26:51 -08:00
Gabe Kangas
2743bddf4e
Fix js package build workflow 2022-03-07 11:21:42 -08:00
Gabe Kangas
883d22cf76
Force worfklow to run under node 12 2022-03-07 09:10:22 -08:00
Gabe Kangas
5dd3ce5c44
Update golangci-lint action 2022-03-07 00:21:33 -08:00
Gabe Kangas
5196491f73
Add Renovate config 2022-03-06 18:19:46 -08:00
Gabe Kangas
9e0099f865 Update stale PR message 2021-12-15 21:45:21 -08:00
Gabe Kangas
e6ed6a6849
Don't run CodeQL for dependencies 2021-12-13 10:14:56 -08:00
Gabe Kangas
06f3644b11
Remove running codeql on a schedule
PRs and pushes only.
2021-11-13 18:49:57 -08:00
Gabe Kangas
ae49e38eb9 Update admin dispatch event workflow 2021-11-12 16:44:38 -08:00
Gabe Kangas
464ae9598b Add workflow for accepting bundle admin event 2021-11-12 10:02:04 -08:00
Gabe Kangas
f78f1795fe
Update stale issue message 2021-11-08 17:51:18 -08:00
Gabe Kangas
3fdae7afb9 Don't codeql the static directory 2021-11-01 18:30:46 -07:00
Gabe Kangas
fdc381c738 Test against Go 1.17 and drop 1.15 from the tests 2021-10-31 14:08:17 -07:00
Jack
651caeba91
Fix build for Windows (#1377) (#1506)
* Fix build for Windows (#1377)

* Add tests for windows
2021-10-31 14:01:22 -07:00
Gabe Kangas
f0bd7d2528
Replace pkger with go:embed for bundling the admin. Closes #844 (#1464)
* Replace pkger with go:embed for bundling the admin. Closes #844

* Remove references to pkged.go

* Point tests to use an updated version of Go

* Add comment to new exported function

* Cleanup

* Add a dummy pkged.go to alert people to stop using it.

* Add simple browser test to make sure the admin is available and renders

* Don't panic
2021-10-11 14:56:00 -07:00
Gabe Kangas
7b097ccdd9
HLS tests for local and S3 storage. Closes #1457 (#1460) 2021-10-06 21:03:48 -07:00
Gabe Kangas
22fbfec7d3
Create a simple PR template
Preparing for Hacktoberfest.
2021-09-29 13:50:28 -07:00
Gabe Kangas
cc6b257470
Automated browser testing (#1415)
* Move automated api tests to api directory

* First pass at automated browser testing
2021-09-17 14:04:09 -07:00
Gabe Kangas
608888317b Have nightly build create a production build of tailwind 2021-09-13 00:06:10 -07:00
Gabe Kangas
c6c6f0233d
Expanded linting + fix warnings (#1396)
* Expand the linters and types of warnings to improve consistency and safety

* Fail lint workflow if there are errors

* golint has been replaced by revive

* Hand-pick some of the default exclude list

* Ignore error when trying to delete preview gif

* Ignore linter warning opening playlist path

* Rename user field Id -> ID

* A bunch of renames to address linter warnings

* Rename ChatClient -> Client per linter suggestion best practice

* Rename ChatServer -> Server per linter suggestion best practice

* More linter warning fixes

* Add missing comments to all exported functions and properties
2021-09-12 00:18:15 -07:00
Meisam
ae1c2d89f0
Check for secret key before nightly builds (#1375) 2021-09-03 11:49:10 -07:00
Gabe Kangas
734e16203e Attempt running tests under freebsd and openbsd vms 2021-08-27 15:34:22 -07:00
Gabe Kangas
ec89fb2def Remove windows from test matrix. Filed TODO to fix tests for windows 2021-08-27 15:29:38 -07:00
Gabe Kangas
b50f1674a8 Add more test targets for GitHub tests 2021-08-27 15:24:21 -07:00
Gabe Kangas
2094154917
Remove Linode todo
As they list the version as "latest" now.
2021-08-22 12:02:38 -07:00
Gabe Kangas
a01fe638cc
Increase golangci-lint timeout 2021-08-12 21:33:11 -07:00
Gabe Kangas
b5bb28b396
Dependabot does not have access to commit 2021-07-27 13:02:14 -07:00
Christian Muehlhaeuser
261fe56bad
Don't specify the linter version, as it's not required any longer (#1262) 2021-07-24 23:19:46 -07:00
Gabe Kangas
0c6378976c
Troubleshoot workflow 2021-07-12 09:13:06 -07:00
Gabe Kangas
e84149ea50
Fix broken workflow due to typo 2021-07-12 09:04:28 -07:00
Gabe Kangas
2c2736aef9
Use full path to dependency 2021-06-23 18:20:46 -07:00
Gabe Kangas
610a3ef834 Calm down excessive dependabot updates 2021-06-23 18:17:13 -07:00
Gabe Kangas
99d04c8e69
Customize stalebot to close stale PRs 2021-06-21 09:46:32 -07:00
leuc
e311cb53ea
let actions/checkout@v2 select the right reference for push and pull request events (#1042) 2021-05-22 10:36:21 -07:00
Gabe Kangas
380f3c5015
Do not format dependabot 2021-05-18 10:13:26 -07:00
Gabe Kangas
0f3e818041
Do not lint dependabot 2021-05-18 10:12:52 -07:00
Gabe Kangas
7d50db09ec
Removing from dependabot reviews 2021-04-26 23:29:47 -07:00
Gabe Kangas
cf12a64ec4
Update release template to mention DO and Linode 2021-04-23 14:59:04 -07:00
Gabe Kangas
76e90df1f3
Update javascript-packages.yaml 2021-04-12 23:13:26 -07:00
Gabe Kangas
0b6c827557 master -> develop 2021-04-11 19:50:47 -07:00
Gabe Kangas
36154bc4c0 Fix permissions error on automated linter.
This reverts commit bf06467f2d.
2021-04-10 19:27:24 -07:00
Gabe Kangas
bf06467f2d
Removing lint.yml and consolidating into the formatting job 2021-04-10 19:22:18 -07:00
Gabe Kangas
075448ae2b Update nightly cron job 2021-03-30 17:37:58 -07:00
Gabe Kangas
bf93d2decc build docker image every night 2021-03-29 20:49:41 -07:00
Gabe Kangas
4f012fab56
Add nebunez to dependabot alerts 2021-03-10 16:46:41 -08:00
Gabe Kangas
896c7b57ef
Remove code formatting on PRs 2021-03-09 14:25:00 -08:00
Gabe Kangas
c27620d656
Never mark issues with a milestone as stale 2021-03-04 21:24:50 -08:00
Gabe Kangas
c19462a20e
Link GitHub to OpenCollective 2021-02-28 17:25:05 -08:00
Gabe Kangas
3ae6f82701
Update prettier action + only look at webroot 2021-02-21 11:02:51 -08:00
Gabe Kangas
bc2caadb74
0.0.6 -> Master (#731)
* Implement webhook events for external integrations (#574)

* Implement webhook events for external integrations

Reference #556

* move message type to models and remove duplicate

* add json header so content type can be determined

* Pass at migrating webhooks to datastore + management apis (#589)

* Pass at migrating webhooks to datastore + management apis

* Support nil lastUsed timestamps and return back the new webhook on create

* Cleanup from review feedback

* Simplify a bit

Co-authored-by: Aaron Ogle <aaron@geekgonecrazy.com>

Co-authored-by: Gabe Kangas <gabek@real-ity.com>

* Webhook query cleanup

* Access tokens + Send system message external API (#585)

* New add, get and delete access token APIs

* Create auth token middleware

* Update last_used timestamp when using an access token

* Add auth'ed endpoint for sending system messages

* Cleanup

* Update api spec for new apis

* Commit updated API documentation

* Add auth'ed endpoint for sending user chat messages

* Return access token string

* Commit updated API documentation

* Fix route

* Support nil lastUsed time

* Commit updated Javascript packages

* Remove duplicate function post rebase

* Fix msg id generation

* Update controllers/admin/chat.go

Co-authored-by: Aaron Ogle <geekgonecrazy@users.noreply.github.com>

* Webhook query cleanup

* Add SystemMessageSent to EventType

Co-authored-by: Owncast <owncast@owncast.online>
Co-authored-by: Aaron Ogle <geekgonecrazy@users.noreply.github.com>

* Set webhook as used on completion. Closes #610

* Display webhook errors as errors

* Commit updated API documentation

* Add user joined chat event

* Change integration API paths. Update API spec

* Update development version of admin that supports integration apis

* Commit updated API documentation

* Add automated tests for external integration APIs

* check error

* quiet this test for now

* Route up some additional 3rd party apis. #638

* Commit updated API documentation

* Save username on user joined event

* Add missing scope to valid scopes list

* Add generic chat action event API for 3rd parties. Closes #666

* Commit updated API documentation

* First pass at moving WIP config framework into project for #234

* Only support exported fields in custom types

* Using YP get/set key as a first pass at using the data layer. Fixes + integration.

* Ignore test db

* Start adding getters and setters for config values

* More get/set config work. Starting to populate api with data

* Wire up some config edit endpoints

* More endpoints

* Disable cors middleware

* Add more endpoints and add test to test them

* Remove the in-memory change APIs

* Add endpoint for changing tags

* Add more config endpoints

* Starting to point more things away from config file and to the datastore

* Populate YP with db data

* Create new util method for parsing page body markdown and return it in api

* Verify proposed path to ffmpeg

* For development purposes show the config key in logs

* Move stats values to datastore

* Moving over more values to the datastore

* Move S3 config to datastore

* First pass the config -> db migrator

* Add the start of the video config apis

* It builds pointing everything away from the config

* Tweak ffmpeg path error message

* Backup database every hour. Closes #549

* Config + defaults + migration work for db

* Cleanup logging

* Remove all the old config structs

* Add descriptive info about migration

* Tweak ffmpeg validation logic

* Fix db backup path. backup on db version migration

* Set video and s3 configurations

* Update api spec with new config endpoints

* Add migrator for stats file

* Commit updated API documentation

* Use a dynamic system port for internal HLS writes. Closes #577 (#626)

* Use a dynamic system port for internal HLS writes. Closes #577

* Cleanup

* YP key migration to datastore

* Create a backup directory if needed before migrations

* Remove config test that no longer makes sense. Cleanup.

* Change number types from float32 to float64

* Update automated test suite

* Allow restoring a database backup via command line flags. Closes #549

* Add new hls segment config api

* Commit updated API documentation

* Update apis to require a value container property

* add socialHandles api

* Commit updated API documentation

* Add new latancy level setting to replace segment settings

* Commit updated API documentation

* Fix spelling

* Commit updated API documentation

* hardcode a json api of available social platforms

* Add additional icons

* Return social handles in server config api

* Add socialhandles validation to test

* Move list of hard coded social platforms to an api

* Remove audio only code from transcoder since we do not use it

* Add latency levels api + snapshot of video settings as current broadcast

* Add config/serverurl endpoint

* Return 404 on YP api if disabled

* Surface stream title in YP response

* Add stream title to web ui

* Cleanup log message. Closes #520

* Rename ffmpeg package to transcoder

* Add ws package for testing

* Reduce chat backlog to past 5hrs, max 50. Closes #548

* Fix error formatting

* Add endpoint for resetting yp registration

* Add yp/reset to api spec. return status in response

* Return zero viewer count if stream is offline. Closes #422

* Post-rebase fixes

* Fix merge conflict in openapi file

* Commit updated API documentation

* Standardize controller names

* Support setting the stream key via the command line. Closes #665

* Return social handles with YP data. First half of https://github.com/owncast/owncast-yp/issues/28

* Give the YP package access to server status regardless if enabled or not

* Change delay in automated tests

* Add stream title integration API. For #638

* Commit updated API documentation

* Add storage to the migrator

* Missing returning NSFW value in server config

* Add flag to ignore websocket client. Closes #537

* Add error for parsing broadcaster metadata

* Add support for a cli specified http server port. Closes #674

* Add cpu usage levels and a temporary mapping between it and libx264 presets

* Test for valid url endpoint when saving s3 config

* Re-configure storage on every stream to allow changing storage providers

* After 5 minutes of a stream being stopped clear the stream title

* Hide viewer count once stream goes offline instead of when player stops

* Pull steamTitle from the status that gets updated instead of the config

* Commit updated API documentation

* Optionally show stream title in the header

* Reset stream title when server starts

* Show chat action when stream title is updated

* Allow system messages to come back in persistence

* Split out getting chat history for moderation + fix tests

* Remove server title and standardize on name only

* Commit updated API documentation

* Bump github.com/aws/aws-sdk-go from 1.37.1 to 1.37.2 (#680)

Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.37.1 to 1.37.2.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.37.1...v1.37.2)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Add video variant and stream latency config file migrator

* Remove mostly unused disable upgrade check bool

* Commit updated API documentation

* Allow bundling the admin from the 0.0.6 branch

* Fix saving port numbers

* Use name instead of old title on window focus

* Work on latency levels. Fix test to use levels. Clean up transcoder to only reference levels

* Another place where title -> name

* Fix test

* Bump github.com/aws/aws-sdk-go from 1.37.2 to 1.37.3 (#690)

Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.37.2 to 1.37.3.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.37.2...v1.37.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Update dependabot config

* Bump github.com/aws/aws-sdk-go from 1.37.3 to 1.37.5 (#693)

Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.37.3 to 1.37.5.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.37.3...v1.37.5)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump video.js from 7.10.2 to 7.11.4 in /build/javascript (#694)

* Bump video.js from 7.10.2 to 7.11.4 in /build/javascript

Bumps [video.js](https://github.com/videojs/video.js) from 7.10.2 to 7.11.4.
- [Release notes](https://github.com/videojs/video.js/releases)
- [Changelog](https://github.com/videojs/video.js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/videojs/video.js/compare/v7.10.2...v7.11.4)

Signed-off-by: dependabot[bot] <support@github.com>

* Commit updated Javascript packages

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Owncast <owncast@owncast.online>

* Make the latency migrator dynamic so I can tweak values easier

* Split out fetching ffmpeg path from validating the path so it can be changed in the admin

* Some commenting and linter cleanup

* Validate the path for a logo change and throw an error if it does not exist

* Logo change requests have to be a real file now

* Cleanup, making linter happy

* Format javascript on push

* Only format js in master

* Tweak latency level values

* Remove unused config file examples

* Fix thumbnail generation after messing with the ffmpeg path getter

* Reduce how often we report high hardware utilization warnings

* Bundle the 0.0.6 branch version of the admin

* Return validated ffmpeg path in admin server config

* Change the logo to be stored in the data directory instead of webroot

* Bump postcss from 8.2.4 to 8.2.5 in /build/javascript (#702)

Bumps [postcss](https://github.com/postcss/postcss) from 8.2.4 to 8.2.5.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.2.4...8.2.5)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Default config file no longer used

* don't show stream title when offline

addresses https://github.com/owncast/owncast/issues/677

* Remove auto-clearing stream title. #677

* webroot -> data when using logo as thumbnail

* Do not list websocket/access token create/delete as integration APIs

* Commit updated API documentation

* Bundle updated admin

* Remove pointing to the 0.0.6 admin branch

* Linter cleanup

* Linter cleanup

* Add donations and follow links to show up under social handles

* Prettified Code!

* More linter cleanup

* Update admin bundle

* Remove use of platforms.js and return icons with social handles. Closes #732

* Update admin bundle

* Support custom config path for use in migration

* Remove unused platform-logos.gif

* Reduce log level of message

* Remove unused logo files in static dir

* Handle dev vs. release build info

* Restore logo.png for initial thumbnail

* Cleanup some files from the build process that are not needed

* Fix incorrect build-time injection var

* Fix missing file getting copied to the build

* Remove console directory message.

* Update admin bundle

* Fix comment

* Report storage setup error

* add some value set error checking

* Use validated dynamic ffmpeg path for animated gif preview

* Make chat message links be white so they don't hide in the bg. Closes #599

* Restore conditional that was accidentally removed

Co-authored-by: Aaron Ogle <geekgonecrazy@users.noreply.github.com>
Co-authored-by: Owncast <owncast@owncast.online>
Co-authored-by: Ginger Wong <omqmail@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: nebunez <uoj2y7wak869@opayq.net>
Co-authored-by: gabek <gabek@users.noreply.github.com>
2021-02-18 23:05:52 -08:00
Gabe Kangas
2d42903ad6 Format javascript on push 2021-02-05 13:10:52 -08:00
Gabe Kangas
4d60c7c80c
Update dependabot config 2021-02-04 01:41:17 -08:00
Gabe Kangas
95ad4e006a
Try enabling codeql analysis, see how it does. 2021-01-18 15:51:14 -08:00
Gabe Kangas
88015638f0
Add checklist item for installer. 2020-12-22 23:25:36 -08:00
Gabe Kangas
5dff6f32fc
End to end automated tests run on Github workflows (#384)
* WIP for automated integration test

* See if it runs under a workflow

* Support running test locally as well as a workflow

* Use already downloaded repo to build. Do not re-clone

* Add comments

* Update to support new default config file

* Split out different test suites

* Add test for chat

* Always run test with config-default and ignore local config file

* Remove the build workflow because the end to end test does that now
2020-11-24 00:28:54 -08:00
Gabe Kangas
d4426f1dff
Make default config file simpler. Closes #364 (#375) 2020-11-19 08:48:33 -08:00
Gabe Kangas
30f8b77c25
Update owncast-release-checklist.md 2020-11-17 23:18:07 -08:00
Christian Muehlhaeuser
16e578e993
Use a golangci-lint workflow to check for common mistakes & problems (#353) 2020-11-12 14:42:39 -08:00
Christian Muehlhaeuser
cdcead1143
Use 'os' instead of the deprecated 'platform' in build matrix (#347) 2020-11-12 13:37:27 -08:00
Christian Muehlhaeuser
6976dffdfb
Build & test against Go 1.13 and latest Go (#346) 2020-11-12 13:29:38 -08:00
Gabe Kangas
e8f1d5ef3f
Typo 2020-11-10 15:05:33 -08:00
Gabe Kangas
7330722110
Link directly to new discussion post 2020-11-10 15:04:07 -08:00
Gabe Kangas
0a5ed6d942
Add link to Owncast discussions on Github 2020-11-10 15:03:21 -08:00
Gabe Kangas
f8712856af
Trying to fix commits not happening with js 2020-10-30 16:04:03 -07:00
Gabe Kangas
41b694d292
Add auto-closing stale issues and PRs
Keep the repo clean.
2020-10-30 15:03:48 -07:00
Gabe Kangas
72918a62d8
Update owncast-release-checklist.md 2020-10-29 00:31:09 -07:00
Gabe Kangas
6504736c4b
Update javascript-packages.yaml 2020-10-28 14:58:33 -07:00
Gabe Kangas
d173b93204
Update javascript-packages.yaml 2020-10-28 14:54:31 -07:00
Gabe Kangas
2c3da709f5 Add some additional issue template items 2020-10-26 15:03:34 -07:00
Gabe Kangas
18829209cb Add issue template for public release checklist 2020-10-26 12:59:00 -07:00
Gabe Kangas
ebed81c81e Test update of api doc 2020-10-21 22:41:57 -07:00
Gabe Kangas
294339b496 Fix typo 2020-10-21 22:39:32 -07:00