From 1fae4b3c27d46fdab82beef9bda081d480afa626 Mon Sep 17 00:00:00 2001 From: Matteo La Cognata Date: Tue, 3 Oct 2023 12:22:23 +0200 Subject: [PATCH] chore(): workflow --- .github/workflows/deploy.yml | 4 ++++ docker-compose.yml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5e8b66e..93c4ac5 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -19,6 +19,7 @@ jobs: lint: name: ⬣ ESLint runs-on: ubuntu-latest + if: ${{ github.event_name == 'pull_request' }} steps: - name: ⬇️ Checkout repo uses: actions/checkout@v4 @@ -39,6 +40,7 @@ jobs: typecheck: name: ʦ TypeScript runs-on: ubuntu-latest + if: ${{ github.event_name == 'pull_request' }} steps: - name: ⬇️ Checkout repo uses: actions/checkout@v4 @@ -59,6 +61,7 @@ jobs: vitest: name: ⚡ Vitest runs-on: ubuntu-latest + if: ${{ github.event_name == 'pull_request' }} steps: - name: ⬇️ Checkout repo uses: actions/checkout@v4 @@ -79,6 +82,7 @@ jobs: cypress: name: ⚫️ Cypress runs-on: ubuntu-latest + if: ${{ github.event_name == 'pull_request' }} steps: - name: ⬇️ Checkout repo uses: actions/checkout@v4 diff --git a/docker-compose.yml b/docker-compose.yml index e5f99a3..61594c8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,7 +2,7 @@ version: "3.7" services: timescaledb: image: timescale/timescaledb:latest-pg14 - restart: always + restart: on-failure environment: - POSTGRES_USER=postgres - POSTGRES_PASSWORD=postgres