mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
Updated SQLite path for CI tests
- turns out GitHub Actions doesn't have /tmp as a tmpfs, so this commit switches to using /dev/shm, which *should* work ok
This commit is contained in:
parent
2fe1fb59ee
commit
26c49b4f57
1 changed files with 5 additions and 0 deletions
5
.github/workflows/test.yml
vendored
5
.github/workflows/test.yml
vendored
|
@ -36,6 +36,7 @@ jobs:
|
||||||
DB: ['sqlite3', 'mysql']
|
DB: ['sqlite3', 'mysql']
|
||||||
env:
|
env:
|
||||||
database__client: ${{ matrix.DB }}
|
database__client: ${{ matrix.DB }}
|
||||||
|
database__connection__filename: /dev/shm/ghost-test.db
|
||||||
database__connection__host: 127.0.0.1
|
database__connection__host: 127.0.0.1
|
||||||
database__connection__user: root
|
database__connection__user: root
|
||||||
database__connection__password: root
|
database__connection__password: root
|
||||||
|
@ -104,8 +105,12 @@ jobs:
|
||||||
|
|
||||||
- run: yarn
|
- run: yarn
|
||||||
- run: grunt test-acceptance --verbose
|
- run: grunt test-acceptance --verbose
|
||||||
|
env:
|
||||||
|
database__connection__filename: /dev/shm/ghost-test.db
|
||||||
- run: grunt test-unit --verbose
|
- run: grunt test-unit --verbose
|
||||||
- run: grunt test-regression --verbose
|
- run: grunt test-regression --verbose
|
||||||
|
env:
|
||||||
|
database__connection__filename: /dev/shm/ghost-test.db
|
||||||
|
|
||||||
- uses: daniellockyer/action-slack-build@master
|
- uses: daniellockyer/action-slack-build@master
|
||||||
if: failure() && github.event_name == 'push' && github.ref == 'refs/heads/main'
|
if: failure() && github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||||
|
|
Loading…
Add table
Reference in a new issue