Skip to content

Commit

Permalink
feat([sc-12834]): New Tests [sc-12834]
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniilIdentity authored and qwertyhansindar committed Jun 10, 2024
1 parent 16f7106 commit 7ec5de3
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 31 deletions.
65 changes: 36 additions & 29 deletions docker-for-e2e/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARG GROUP_ID=1000
ARG NODE_VERSION=20

RUN echo 'debconf debconf/frontend select teletype' | debconf-set-selections
RUN apt-get update && apt-get upgrade -y && apt-get install -y apt-utils curl wget git ca-certificates gnupg \
RUN apt-get update && apt-get upgrade -y && apt-get install -y sudo apt-utils curl wget git ca-certificates gnupg \
&& if [ -z "`getent group ${GROUP_ID}`" ]; then \
addgroup --system --gid ${GROUP_ID} user; \
else \
Expand All @@ -21,44 +21,51 @@ RUN apt-get update && apt-get upgrade -y && apt-get install -y apt-utils curl wg
# Install NODE
RUN mkdir -p /etc/apt/keyrings \
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
&& echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_VERSION.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \
&& echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_VERSION.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list \
&& apt-get update \
&& apt-get install -y nodejs

# Install YARN
RUN mkdir -p /etc/apt/keyrings \
&& curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor -o /etc/apt/keyrings/yarnkey.gpg >/dev/null \
&& echo "deb [signed-by=/etc/apt/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | tee /etc/apt/sources.list.d/yarn.list \
&& echo "deb [signed-by=/etc/apt/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | sudo tee /etc/apt/sources.list.d/yarn.list \
&& apt-get update && apt-get install -y yarn

# Install test dependencies
RUN apt-get install libglib2.0-0\
libnss3\
libnspr4\
libdbus-1-3\
libatk1.0-0\
libatk-bridge2.0-0\
libcups2\
libdrm2\
libatspi2.0-0\
libxcomposite1\
libxdamage1\
libxfixes3\
libxrandr2\
libgbm1\
libxkbcommon0\
libpango-1.0-0\
libcairo2\
libasound2
RUN apt-get install -y \
libglib2.0-0 \
libnss3 \
libnspr4 \
libdbus-1-3 \
libatk1.0-0 \
libatk-bridge2.0-0 \
libcups2 \
libdrm2 \
libatspi2.0-0 \
libxcomposite1 \
libxdamage1 \
libxfixes3 \
libxrandr2 \
libgbm1 \
libxkbcommon0 \
libpango-1.0-0 \
libcairo2 \
libasound2 \
libx11-xcb1 \
libxcursor1 \
libgtk-3-0 \
libpangocairo-1.0-0 \
libcairo-gobject2 \
libgdk-pixbuf-2.0-0

RUN apt-get clean \
&& rm -rf \
/var/lib/apt/lists/* \
/var/log/alternatives.log \
/var/log/apt/history.log \
/var/log/apt/term.log \
/var/log/dpkg.log \
/etc/machine-id \
RUN apt-get clean \
&& rm -rf \
/var/lib/apt/lists/* \
/var/log/alternatives.log \
/var/log/apt/history.log \
/var/log/apt/term.log \
/var/log/dpkg.log \
/etc/machine-id \
/var/lib/dbus/machine-id

COPY docker-entrypoint.sh /usr/bin/
Expand Down
4 changes: 2 additions & 2 deletions docker-for-e2e/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ ci_echo_info "Installing packages ..." >&2
ci_echo_debug "npm install --frozen-lockfile" >&2
npm install --frozen-lockfile

# ci_echo_info "Runniung the playground ..." >&2
# ci_echo_info "Running the playground ..." >&2
# popd > /dev/null
# ci_echo_debug "npm run playground" >&2
# npm run playground >/dev/null 2>&1 &
Expand All @@ -45,7 +45,7 @@ ci_echo_info "Configuring playwright" >&2
ci_echo_debug "npx playwright install" >&2
npx playwright install

ci_echo_info "Runniung the tests..." >&2
ci_echo_info "Running the tests..." >&2
ci_echo_debug "npm run test:e2e" >&2
npm run test:e2e || exit_code=$?

Expand Down

0 comments on commit 7ec5de3

Please sign in to comment.