Skip to content

Commit

Permalink
chore: add docker file to run test
Browse files Browse the repository at this point in the history
  • Loading branch information
@jotadeveloper authored and sergiohgz committed Jul 31, 2019
1 parent e9506ec commit e05a6b5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
8 changes: 8 additions & 0 deletions plugins/memory/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Ignore all files by default

# White list only the required files
node_modules
_storage
.github
.circleci
coverage
12 changes: 12 additions & 0 deletions plugins/memory/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM node:10.15.1-alpine
# Setup the working directory
RUN mkdir /srv/github-actions-app
WORKDIR /srv/github-actions-app
# Send over the dependency definitions to the container
COPY package.json yarn.lock ./
# Install the dependencies
RUN yarn install --production=false && yarn cache clean
# Copy the whitelisted files
COPY . .
# Run the tests
RUN yarn build && yarn test

0 comments on commit e05a6b5

Please sign in to comment.