Patch #41969 » 0002-Add-tests-with-SQLite3-to-CI.patch
| .github/workflows/tests.yml | ||
|---|---|---|
| 11 | 11 |
strategy: |
| 12 | 12 |
matrix: |
| 13 | 13 |
ruby: ['3.1', '3.2', '3.3'] |
| 14 |
db: ['postgresql', 'mysql2'] |
|
| 14 |
db: ['postgresql', 'mysql2', 'sqlite3']
|
|
| 15 | 15 |
fail-fast: false |
| 16 | 16 | |
| 17 | 17 |
services: |
| ... | ... | |
| 60 | 60 |
sudo rm /etc/ImageMagick-6/policy.xml |
| 61 | 61 |
sudo mv policy.xml /etc/ImageMagick-6/policy.xml |
| 62 | 62 | |
| 63 |
- name: Prepare Redmine database configuration |
|
| 63 |
- if: ${{ matrix.db == 'sqlite3' }}
|
|
| 64 |
name: Prepare test database for sqlite3 |
|
| 65 |
run: | |
|
| 66 |
cat > config/database.yml <<EOF |
|
| 67 |
test: |
|
| 68 |
adapter: sqlite3 |
|
| 69 |
database: db/test.sqlite3 |
|
| 70 |
EOF |
|
| 71 | ||
| 72 |
- if: ${{ matrix.db == 'mysql2' || matrix.db == 'postgresql' }}
|
|
| 73 |
name: Prepare test database for mysql2 and postgresql |
|
| 64 | 74 |
run: | |
| 65 | 75 |
cat > config/database.yml <<EOF |
| 66 | 76 |
test: |