Skip to content

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

Add unit and api tests to Earthfile

Gabe Kangas8556904548be
diff --git a/Earthfile b/Earthfile
index 25ecc913e9..abcaa9ea6c 100644
--- a/Earthfile
+++ b/Earthfile
@@ -97,7 +97,6 @@ package:
ARG NAME=custom
END
- COPY (+build/webroot --platform $TARGETPLATFORM) /build/dist/webroot
COPY (+build/owncast --platform $TARGETPLATFORM) /build/dist/owncast
COPY (+build/README.md --platform $TARGETPLATFORM) /build/dist/README.md
ENV ZIPNAME owncast-$version-$NAME.zip
@@ -116,3 +115,16 @@ docker:
ENTRYPOINT ["/app/owncast"]
EXPOSE 8080 1935
SAVE IMAGE --push $image:$tag
+
+unit-tests:
+ FROM --platform=linux/amd64 bdwyertech/go-crosscompile
+ COPY . /build
+ WORKDIR /build
+ RUN go test ./...
+
+api-tests:
+ FROM --platform=linux/amd64 bdwyertech/go-crosscompile
+ RUN apk add ffmpeg npm
+ COPY . /build
+ WORKDIR /build
+ RUN cd test/automated/api && ./run.sh