db-cache fixes
This commit is contained in:
parent
0991c54f36
commit
8d2587bc3a
|
@ -2,7 +2,8 @@ name: Cache database between jobs
|
||||||
description: "Cache or restore if necessary"
|
description: "Cache or restore if necessary"
|
||||||
inputs:
|
inputs:
|
||||||
DATABASE_URL:
|
DATABASE_URL:
|
||||||
required: true
|
required: false
|
||||||
|
default: postgresql://postgres:@localhost:5432/calendso
|
||||||
path:
|
path:
|
||||||
required: false
|
required: false
|
||||||
default: "backups/backup.sql"
|
default: "backups/backup.sql"
|
||||||
|
@ -17,7 +18,7 @@ runs:
|
||||||
with:
|
with:
|
||||||
path: ${{ inputs.path }}
|
path: ${{ inputs.path }}
|
||||||
key: ${{ runner.os }}-${{ env.cache-name }}-${{ inputs.path }}-${{ github.sha }}
|
key: ${{ runner.os }}-${{ env.cache-name }}-${{ inputs.path }}-${{ github.sha }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-${{ env.cache-name }}-${{ inputs.path }}-${{ github.sha }}
|
${{ runner.os }}-${{ env.cache-name }}-${{ inputs.path }}-${{ github.sha }}
|
||||||
- name: Postgres Dump Backup
|
- name: Postgres Dump Backup
|
||||||
if: steps.cache-db.outputs.cache-hit != 'true'
|
if: steps.cache-db.outputs.cache-hit != 'true'
|
||||||
|
|
|
@ -23,8 +23,6 @@ jobs:
|
||||||
- uses: ./.github/actions/yarn-install
|
- uses: ./.github/actions/yarn-install
|
||||||
- uses: ./.github/actions/yarn-playwright-install
|
- uses: ./.github/actions/yarn-playwright-install
|
||||||
- uses: ./.github/actions/cache-db
|
- uses: ./.github/actions/cache-db
|
||||||
with:
|
|
||||||
DATABASE_URL: ${{ env.DATABASE_URL }}
|
|
||||||
- uses: ./.github/actions/env-read-file
|
- uses: ./.github/actions/env-read-file
|
||||||
- uses: ./.github/actions/cache-build
|
- uses: ./.github/actions/cache-build
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
|
|
|
@ -22,8 +22,6 @@ jobs:
|
||||||
- uses: ./.github/actions/yarn-install
|
- uses: ./.github/actions/yarn-install
|
||||||
- uses: ./.github/actions/yarn-playwright-install
|
- uses: ./.github/actions/yarn-playwright-install
|
||||||
- uses: ./.github/actions/cache-db
|
- uses: ./.github/actions/cache-db
|
||||||
with:
|
|
||||||
DATABASE_URL: ${{ env.DATABASE_URL }}
|
|
||||||
- uses: ./.github/actions/env-read-file
|
- uses: ./.github/actions/env-read-file
|
||||||
- uses: ./.github/actions/cache-build
|
- uses: ./.github/actions/cache-build
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
|
|
|
@ -20,8 +20,6 @@ jobs:
|
||||||
- uses: ./.github/actions/yarn-install
|
- uses: ./.github/actions/yarn-install
|
||||||
- uses: ./.github/actions/yarn-playwright-install
|
- uses: ./.github/actions/yarn-playwright-install
|
||||||
- uses: ./.github/actions/cache-db
|
- uses: ./.github/actions/cache-db
|
||||||
with:
|
|
||||||
DATABASE_URL: ${{ env.DATABASE_URL }}
|
|
||||||
- uses: ./.github/actions/env-read-file
|
- uses: ./.github/actions/env-read-file
|
||||||
- uses: ./.github/actions/cache-build
|
- uses: ./.github/actions/cache-build
|
||||||
- run: yarn test-e2e
|
- run: yarn test-e2e
|
||||||
|
|
|
@ -22,8 +22,6 @@ jobs:
|
||||||
- uses: ./.github/actions/env-read-file
|
- uses: ./.github/actions/env-read-file
|
||||||
- uses: ./.github/actions/cache-db
|
- uses: ./.github/actions/cache-db
|
||||||
id: cache-db
|
id: cache-db
|
||||||
with:
|
|
||||||
DATABASE_URL: ${{ secrets.DATABASE_URL }}
|
|
||||||
- uses: ./.github/actions/cache-build
|
- uses: ./.github/actions/cache-build
|
||||||
id: cache-build
|
id: cache-build
|
||||||
- run: yarn db-seed
|
- run: yarn db-seed
|
||||||
|
|
Loading…
Reference in New Issue
Block a user