Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Merge remote-tracking branch 'origin/develop' into webv2

Gabe Kangas4d46844461fc
diff --cc .github/workflows/automated-end-to-end-api.yaml
index 5f6402d5f7,0dae5e1918..daa100e286
--- a/.github/workflows/automated-end-to-end-api.yaml
+++ b/.github/workflows/automated-end-to-end-api.yaml
@@@ -3,30 -3,19 +3,28 @@@ name: Automated API test
on:
push:
paths-ignore:
- - 'web/**'
- pull_request:
- paths-ignore:
+ - 'webroot/**'
- 'web/**'
-
+
jobs:
- api:
+ test:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
- - uses: actions/setup-go@v3
+ - uses: earthly/actions-setup@v1
with:
- stable: 'false'
- go-version: '1.17.2'
- - name: Run API tests
- run: cd test/automated/api && ./run.sh
+ version: 'latest' # or pin to an specific version, e.g. "v0.6.10"
-
+ - name: Earthly version
+ run: earthly --version
+
+ - name: Set up QEMU
+ id: qemu
+ uses: docker/setup-qemu-action@v2
+ with:
+ image: tonistiigi/binfmt:latest
+ platforms: all
+
+ - uses: actions/checkout@v3
+
+ - name: Run API tests
+ run: earthly +api-tests
diff --cc .github/workflows/go-lint.yml
index a936b2fe66,0ba4bc773e..adce3701c0
--- a/.github/workflows/go-lint.yml
+++ b/.github/workflows/go-lint.yml
@@@ -4,7 -4,11 +4,12 @@@ on
paths-ignore:
- 'webroot/**'
- 'web/**'
+
+ pull_request:
+ paths-ignore:
+ - 'webroot/**'
+ - 'web/**'
+
permissions:
contents: read
diff --cc .github/workflows/javascript-formatting.yml
index 5934d27345,11d9fc33f9..7128d7530b
--- a/.github/workflows/javascript-formatting.yml
+++ b/.github/workflows/javascript-formatting.yml
@@@ -11,49 -8,23 +11,50 @@@ on
jobs:
prettier:
+ name: Run prettier
runs-on: ubuntu-latest
+ defaults:
+ run:
+ working-directory: ./web
+
if: ${{ github.actor != 'dependabot[bot]' }}
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+ with:
+ # Make sure the actual branch is checked out when running on pull requests
+ ref: ${{ github.event.pull_request.head.ref }}
+ repository: ${{ github.event.pull_request.head.repo.full_name }}
+ fetch-depth: 0
+
+ - name: Prettify code
+ uses: creyD/[email protected]
+ with:
+ # This part is also where you can pass other options, for example:
+ prettier_options: --write **/*.{js,ts,jsx,tsx,css,md}
+ only_changed: true
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+
+ linter:
+ name: Run linter on changed files
+ runs-on: ubuntu-latest
+ defaults:
+ run:
+ working-directory: ./web
steps:
- - name: Checkout
- uses: actions/checkout@v3
- with:
- # Make sure the actual branch is checked out when running on pull requests
- ref: ${{ github.head_ref }}
- fetch-depth: 0
- pull: --rebase --autostash
-
- - name: Prettify code
- uses: creyD/[email protected]
- with:
- # This part is also where you can pass other options, for example:
- prettier_options: --write webroot/**/*.{js,md}
- only_changed: true
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ - name: Checkout
+ uses: actions/checkout@v3
+ with:
+ # Make sure the actual branch is checked out when running on pull requests
+ ref: ${{ github.event.pull_request.head.ref }}
+ repository: ${{ github.event.pull_request.head.repo.full_name }}
+ fetch-depth: 0
++ pull: --rebase --autostash
+
+ - name: Install Dependencies
+ run: npm install
+
+ - name: Lint
+ run: npm run lint
diff --cc core/chat/server.go
index babe332eae,02c1c318b8..d8692a8ca0
--- a/core/chat/server.go
+++ b/core/chat/server.go
@@@ -359,10 -354,8 +359,10 @@@ func (s *Server) eventReceived(event ch
case events.UserNameChanged:
s.userNameChanged(event)
+ case events.UserColorChanged:
+ s.userColorChanged(event)
default:
- log.Debugln(eventType, "event not found:", typecheck)
+ log.Debugln(logSanitize(fmt.Sprint(eventType)), "event not found:", logSanitize(fmt.Sprint(typecheck)))
}
}