Skip to content

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

Support running tests within Earthly container

Gabe Kangas8a1debfba11e
diff --git a/Earthfile b/Earthfile
index f317c5c344..98f3554d34 100644
--- a/Earthfile
+++ b/Earthfile
@@ -127,3 +127,14 @@ docker:
ENTRYPOINT ["/app/owncast"]
EXPOSE 8080 1935
SAVE IMAGE --push $image:$tag
+
+api-tests:
+ FROM --platform=linux/amd64 +code
+ WORKDIR /build
+ RUN apk add npm ffmpeg
+ RUN cd test/automated/api && npm install && ./run.sh
+
+unit-tests:
+ FROM --platform=linux/amd64 +code
+ WORKDIR /build
+ RUN go test ./...