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: