Run API tests inside Eartlhly

This commit is contained in:
Gabe Kangas
2022-09-04 16:41:02 -07:00
parent 5f118abe83
commit c0dc2eb707
4 changed files with 39 additions and 25 deletions

View File

@@ -25,7 +25,7 @@ crosscompiler:
code:
FROM --platform=linux/amd64 +crosscompiler
COPY . /build
# GIT CLONE --branch=$version git@github.com:owncast/owncast.git /build
#GIT CLONE --branch=$version git@github.com:owncast/owncast.git /build
build:
ARG EARTHLY_GIT_HASH # provided by Earthly
@@ -127,5 +127,6 @@ 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
WORKDIR /build/test/automated/api
RUN npm install
RUN ./run.sh