From e378f904bdeeaa1e10a89d80cdd1e3ec1d5ca054 Mon Sep 17 00:00:00 2001 From: Mateusz Kwasniewski Date: Mon, 5 Dec 2022 16:16:18 +0100 Subject: [PATCH] Update publish-new-version.yaml --- .github/workflows/publish-new-version.yaml | 27 +++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-new-version.yaml b/.github/workflows/publish-new-version.yaml index fbcb942702..17426a12e3 100644 --- a/.github/workflows/publish-new-version.yaml +++ b/.github/workflows/publish-new-version.yaml @@ -1,24 +1,38 @@ name: Run npm version and push tags -concurrency: +concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true on: workflow_dispatch: inputs: - version: + version: description: What version would you like to use? jobs: build: runs-on: ubuntu-latest - + strategy: matrix: node-version: [14.x] + services: + # Label used to access the service container + postgres: + # Docker Hub image + image: postgres + # Provide the password for postgres + env: + POSTGRES_PASSWORD: postgres + # Set health checks to wait until postgres has started + ports: + - 5432:5432 + options: >- + --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 + steps: - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} @@ -30,3 +44,10 @@ jobs: - name: npm version run: | npm version ${{ github.event.inputs.version }} + env: + CI: true + TEST_DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres + DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres + NODE_ENV: test + PORT: 4243 +