Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(test): running test into containers in different versions #464

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 0 additions & 34 deletions docker/Dockerfile.node14

This file was deleted.

23 changes: 23 additions & 0 deletions docker/Dockerfile.v12node14
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM node:14-alpine

RUN apk add --no-cache --virtual .build-deps \
ca-certificates \
wget \
tar && \
cd /usr/local/bin && \
wget https://yarnpkg.com/latest.tar.gz && \
tar zvxf latest.tar.gz && \
ln -s /usr/local/bin/dist/bin/yarn.js /usr/local/bin/yarn.js && \
apk del .build-deps

WORKDIR /app

COPY ./packages/angular-v12 /app
COPY ./tsconfig.json /app/tsconfig.json

RUN rm /app/yarn.lock
RUN rm -rf /app/node_modules

RUN yarn install

CMD ["yarn", "test"]
23 changes: 23 additions & 0 deletions docker/Dockerfile.v12node16
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM node:16-alpine

RUN apk add --no-cache --virtual .build-deps \
ca-certificates \
wget \
tar && \
cd /usr/local/bin && \
wget https://yarnpkg.com/latest.tar.gz && \
tar zvxf latest.tar.gz && \
ln -s /usr/local/bin/dist/bin/yarn.js /usr/local/bin/yarn.js && \
apk del .build-deps

WORKDIR /app

COPY ./packages/angular-v12 /app
COPY ./tsconfig.json /app/tsconfig.json

RUN rm /app/yarn.lock
RUN rm -rf /app/node_modules

RUN yarn install

CMD ["yarn", "test"]
23 changes: 23 additions & 0 deletions docker/Dockerfile.v12node18
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM node:18-alpine

RUN apk add --no-cache --virtual .build-deps \
ca-certificates \
wget \
tar && \
cd /usr/local/bin && \
wget https://yarnpkg.com/latest.tar.gz && \
tar zvxf latest.tar.gz && \
ln -s /usr/local/bin/dist/bin/yarn.js /usr/local/bin/yarn.js && \
apk del .build-deps

WORKDIR /app

COPY ./packages/angular-v12 /app
COPY ./tsconfig.json /app/tsconfig.json

RUN rm /app/yarn.lock
RUN rm -rf /app/node_modules

RUN yarn install

CMD ["yarn", "test"]
23 changes: 23 additions & 0 deletions docker/Dockerfile.v13node14
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM node:14-alpine

RUN apk add --no-cache --virtual .build-deps \
ca-certificates \
wget \
tar && \
cd /usr/local/bin && \
wget https://yarnpkg.com/latest.tar.gz && \
tar zvxf latest.tar.gz && \
ln -s /usr/local/bin/dist/bin/yarn.js /usr/local/bin/yarn.js && \
apk del .build-deps

WORKDIR /app

COPY ./packages/angular-v13 /app
COPY ./tsconfig.json /app/tsconfig.json

RUN rm -f /app/yarn.lock
RUN rm -rf /app/node_modules

RUN yarn install

CMD ["yarn", "test"]
23 changes: 23 additions & 0 deletions docker/Dockerfile.v14node16
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM node:16-alpine

RUN apk add --no-cache --virtual .build-deps \
ca-certificates \
wget \
tar && \
cd /usr/local/bin && \
wget https://yarnpkg.com/latest.tar.gz && \
tar zvxf latest.tar.gz && \
ln -s /usr/local/bin/dist/bin/yarn.js /usr/local/bin/yarn.js && \
apk del .build-deps

WORKDIR /app

COPY ./packages/angular-v14 /app
COPY ./tsconfig.json /app/tsconfig.json

RUN rm /app/yarn.lock
RUN rm -rf /app/node_modules

RUN yarn install

CMD ["yarn", "test"]
23 changes: 23 additions & 0 deletions docker/Dockerfile.v15node16
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM node:16-alpine

RUN apk add --no-cache --virtual .build-deps \
ca-certificates \
wget \
tar && \
cd /usr/local/bin && \
wget https://yarnpkg.com/latest.tar.gz && \
tar zvxf latest.tar.gz && \
ln -s /usr/local/bin/dist/bin/yarn.js /usr/local/bin/yarn.js && \
apk del .build-deps

WORKDIR /app

COPY ./packages/angular-v15 /app
COPY ./tsconfig.json /app/tsconfig.json

RUN rm /app/yarn.lock
RUN rm -rf /app/node_modules

RUN yarn install

CMD ["yarn", "test"]
15 changes: 15 additions & 0 deletions docker/Dockerfile.v16node18
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM node:18-alpine

RUN apk add g++ make py3-pip

WORKDIR /app

COPY ./packages/angular-v16 /app
COPY ./tsconfig.json /app/tsconfig.json

RUN rm /app/yarn.lock
RUN rm -rf /app/node_modules

RUN yarn install

CMD ["yarn", "test"]
15 changes: 15 additions & 0 deletions docker/Dockerfile.v17node18
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM node:18-alpine

RUN apk add g++ make py3-pip

WORKDIR /app

COPY ./packages/angular-v17 /app
COPY ./tsconfig.json /app/tsconfig.json

RUN rm /app/yarn.lock
RUN rm -rf /app/node_modules

RUN yarn install

CMD ["yarn", "test"]
15 changes: 15 additions & 0 deletions docker/Dockerfile.v17node20
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM node:20-alpine

RUN apk add g++ make py3-pip

WORKDIR /app

COPY ./packages/angular-v17 /app
COPY ./tsconfig.json /app/tsconfig.json

RUN rm /app/yarn.lock
RUN rm -rf /app/node_modules

RUN yarn install

CMD ["yarn", "test"]
13 changes: 13 additions & 0 deletions docker/Dockerfile.v18node18
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM node:18-alpine

WORKDIR /app

COPY ./packages/angular-v18 /app
COPY ./tsconfig.json /app/tsconfig.json

RUN rm /app/yarn.lock
RUN rm -rf /app/node_modules

RUN yarn install

CMD ["yarn", "test"]
13 changes: 13 additions & 0 deletions docker/Dockerfile.v18node20
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM node:20-alpine

WORKDIR /app

COPY ./packages/angular-v18 /app
COPY ./tsconfig.json /app/tsconfig.json

RUN rm /app/yarn.lock
RUN rm -rf /app/node_modules

RUN yarn install

CMD ["yarn", "test"]
13 changes: 13 additions & 0 deletions docker/Dockerfile.v18node22
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM node:22-alpine

WORKDIR /app

COPY ./packages/angular-v18 /app
COPY ./tsconfig.json /app/tsconfig.json

RUN rm /app/yarn.lock
RUN rm -rf /app/node_modules

RUN yarn install

CMD ["yarn", "test"]
3 changes: 3 additions & 0 deletions docker/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
version=$1

docker rm -f angular-ng-heroicons-container && docker rmi -f angular-ng-heroicons-image && docker build . -f docker/Dockerfile.$1 -t angular-ng-heroicons-image && docker run --name angular-ng-heroicons-container angular-ng-heroicons-image