mirror of
https://github.com/owncast/owncast.git
synced 2024-11-21 20:28:15 +03:00
Support running tests within Earthly container
This commit is contained in:
parent
3bccc5364c
commit
2baad77c5a
1 changed files with 11 additions and 0 deletions
11
Earthfile
11
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 ./...
|
||||
|
|
Loading…
Reference in a new issue