Support running tests within Earthly container
This commit is contained in:
parent
3bccc5364c
commit
2baad77c5a
11
Earthfile
11
Earthfile
@ -127,3 +127,14 @@ docker:
|
|||||||
ENTRYPOINT ["/app/owncast"]
|
ENTRYPOINT ["/app/owncast"]
|
||||||
EXPOSE 8080 1935
|
EXPOSE 8080 1935
|
||||||
SAVE IMAGE --push $image:$tag
|
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 ./...
|
||||||
|
Loading…
Reference in New Issue
Block a user