Support running tests within Earthly container

This commit is contained in:
Gabe Kangas 2022-06-20 08:03:57 -07:00
parent 3bccc5364c
commit 2baad77c5a
No known key found for this signature in database
GPG key ID: 9A56337728BC81EA

View file

@ -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 ./...