Skip to content

Commit

Permalink
fixing database seed cache key so changing migrations will force a ne…
Browse files Browse the repository at this point in the history
…w install
  • Loading branch information
markhuot committed Nov 29, 2023
1 parent 0db441b commit d6616f2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,7 @@ jobs:
uses: actions/cache@v3
with:
path: seed.sql
key: ${{ runner.os }}-seed-${{ hashFiles('config/project/project.yaml') }}
restore-keys: |
${{ runner.os }}-seed-
key: ${{ runner.os }}-seed-${{ hashFiles('config/project/project.yaml', 'src/migrations/*.php') }}
- name: Install Craft
if: steps.database-cache.outputs.cache-hit != 'true'
run: |
Expand Down
2 changes: 0 additions & 2 deletions tests/RouteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,6 @@
});

it('moves a component', function () {
$this->withoutExceptionHandling();

$components = Component::factory()
->type('keystone/section')
->elementId(Entry::factory()->section('pages')->create()->id)
Expand Down

0 comments on commit d6616f2

Please sign in to comment.