diff --git a/.github/actions/cache-db/action.yml b/.github/actions/cache-db/action.yml index 27fd0519cc..5d2e1d165e 100644 --- a/.github/actions/cache-db/action.yml +++ b/.github/actions/cache-db/action.yml @@ -2,7 +2,8 @@ name: Cache database between jobs description: "Cache or restore if necessary" inputs: DATABASE_URL: - required: true + required: false + default: postgresql://postgres:@localhost:5432/calendso path: required: false default: "backups/backup.sql" @@ -17,7 +18,7 @@ runs: with: path: ${{ inputs.path }} key: ${{ runner.os }}-${{ env.cache-name }}-${{ inputs.path }}-${{ github.sha }} - restore-keys: | + restore-keys: | ${{ runner.os }}-${{ env.cache-name }}-${{ inputs.path }}-${{ github.sha }} - name: Postgres Dump Backup if: steps.cache-db.outputs.cache-hit != 'true' diff --git a/.github/workflows/e2e-app-store.yml b/.github/workflows/e2e-app-store.yml index 6e7cb7f266..e3d883bb9e 100644 --- a/.github/workflows/e2e-app-store.yml +++ b/.github/workflows/e2e-app-store.yml @@ -23,8 +23,6 @@ jobs: - uses: ./.github/actions/yarn-install - uses: ./.github/actions/yarn-playwright-install - uses: ./.github/actions/cache-db - with: - DATABASE_URL: ${{ env.DATABASE_URL }} - uses: ./.github/actions/env-read-file - uses: ./.github/actions/cache-build - name: Run Tests diff --git a/.github/workflows/e2e-embed.yml b/.github/workflows/e2e-embed.yml index 2b4ad3d71e..db1f6707aa 100644 --- a/.github/workflows/e2e-embed.yml +++ b/.github/workflows/e2e-embed.yml @@ -22,8 +22,6 @@ jobs: - uses: ./.github/actions/yarn-install - uses: ./.github/actions/yarn-playwright-install - uses: ./.github/actions/cache-db - with: - DATABASE_URL: ${{ env.DATABASE_URL }} - uses: ./.github/actions/env-read-file - uses: ./.github/actions/cache-build - name: Run Tests diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 18a219f063..edc5c8e746 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -20,8 +20,6 @@ jobs: - uses: ./.github/actions/yarn-install - uses: ./.github/actions/yarn-playwright-install - uses: ./.github/actions/cache-db - with: - DATABASE_URL: ${{ env.DATABASE_URL }} - uses: ./.github/actions/env-read-file - uses: ./.github/actions/cache-build - run: yarn test-e2e diff --git a/.github/workflows/production-build.yml b/.github/workflows/production-build.yml index 41928a5b2e..685d336835 100644 --- a/.github/workflows/production-build.yml +++ b/.github/workflows/production-build.yml @@ -22,8 +22,6 @@ jobs: - uses: ./.github/actions/env-read-file - uses: ./.github/actions/cache-db id: cache-db - with: - DATABASE_URL: ${{ secrets.DATABASE_URL }} - uses: ./.github/actions/cache-build id: cache-build - run: yarn db-seed