From 73a8cd32cf76d6c263fc7e7f2d880fd48c3b09bb Mon Sep 17 00:00:00 2001 From: Amir Raminfar Date: Fri, 3 Apr 2020 15:52:35 -0700 Subject: [PATCH] Fixes int tests --- .github/workflows/push.yml | 2 +- integration/Dockerfile | 8 ++++++++ integration/docker-compose.test.yml | 9 ++++----- 3 files changed, 13 insertions(+), 6 deletions(-) create mode 100644 integration/Dockerfile diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 8b575b4d..204ae84e 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -7,7 +7,7 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v2 - - name: npm test + - name: Install Node uses: actions/setup-node@v1 - name: Run NPM Tests run: npm it diff --git a/integration/Dockerfile b/integration/Dockerfile new file mode 100644 index 00000000..dc3760e7 --- /dev/null +++ b/integration/Dockerfile @@ -0,0 +1,8 @@ +FROM amir20/docker-alpine-puppeteer:edge + +COPY --chown=pptruser:pptruser package*.json /app/ +RUN npm ci + +COPY --chown=pptruser:pptruser . /app/ + +CMD [ "npm", "test"] diff --git a/integration/docker-compose.test.yml b/integration/docker-compose.test.yml index c49fa6c1..cce4cb31 100644 --- a/integration/docker-compose.test.yml +++ b/integration/docker-compose.test.yml @@ -7,12 +7,11 @@ services: environment: - DOZZLE_FILTER=name=dozzle build: - context: ../ + context: .. integration: - image: amir20/docker-alpine-puppeteer:edge - command: npm it - volumes: - - ./:/app/ + build: + context: . + command: npm test environment: - BASE=http://dozzle:8080/ depends_on: