Project

General

Profile

Patch #41969 » 0002-Add-tests-with-SQLite3-to-CI.patch

Katsuya HIDAKA, 2024-12-11 16:43

View differences:

.github/workflows/tests.yml
strategy:
matrix:
ruby: ['3.1', '3.2', '3.3']
db: ['postgresql', 'mysql2']
db: ['postgresql', 'mysql2', 'sqlite3']
fail-fast: false
services:
......
sudo rm /etc/ImageMagick-6/policy.xml
sudo mv policy.xml /etc/ImageMagick-6/policy.xml
- name: Prepare Redmine database configuration
- if: ${{ matrix.db == 'sqlite3' }}
name: Prepare test database for sqlite3
run: |
cat > config/database.yml <<EOF
test:
adapter: sqlite3
database: db/test.sqlite3
EOF
- if: ${{ matrix.db == 'mysql2' || matrix.db == 'postgresql' }}
name: Prepare test database for mysql2 and postgresql
run: |
cat > config/database.yml <<EOF
test:
(2-2/3)