-
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |