From 601958e589342900dd448d44506cee18fd60e39f Mon Sep 17 00:00:00 2001 From: Jonathan Sharpe Date: Wed, 3 Jan 2024 10:56:24 +0000 Subject: [PATCH] Install dependencies after starting containers This allowed the Postgres DB enough time to be up and running. --- .github/workflows/push.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index abc65d9c..0b4c1ff3 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -14,12 +14,15 @@ jobs: DATABASE_URL: postgres://postgres:@localhost:4211/postgres runs-on: ubuntu-22.04 steps: + - name: Check out source code + uses: actions/checkout@v4 + - name: Start dev service containers + run: docker compose up --detach - name: Set up Node.js environment uses: textbook/take-action@nodejs with: + checkout: "false" node-version-file: ".nvmrc" - - name: Start dev service containers - run: docker compose up --detach - name: Apply database migrations run: npm run migration -- up - name: Check code style