diff --git a/.github/workflows/deploy_prereview-dev.yml b/.github/workflows/deploy_prereview-dev.yml index d132be03..ddeb44d6 100644 --- a/.github/workflows/deploy_prereview-dev.yml +++ b/.github/workflows/deploy_prereview-dev.yml @@ -23,6 +23,12 @@ jobs: - name: 'Build dev image' run: docker-compose --file docker-compose.yml --file docker-compose.dev.yml build prereview + - name: 'Lint' + run: docker-compose --file docker-compose.yml --file docker-compose.dev.yml run --entrypoint "npm run" prereview lint + + - name: 'Test' + run: docker-compose --file docker-compose.yml --file docker-compose.dev.yml run --entrypoint "npm run" prereview test + - name: 'Login via Azure CLI' uses: azure/login@v1 with: diff --git a/Dockerfile b/Dockerfile index 3ea62747..219d65c0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,9 +18,6 @@ RUN npm ci COPY . . -RUN npm run lint -RUN npm run test - ENV NODE_ENV=production # Avoid lscpu warning on Alpine