Enable mongodb and mysql tests #148
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: push | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-24.04-arm] | |
test_script: [ | |
mongodb-6.0.20.sh, | |
mongodb-7.0.16.sh, | |
mysql-8.0.41.sh, | |
mysql-8.4.4.sh | |
# postgresql-12.4.sh, | |
# postgresql-13.2.sh, | |
# redis-6.2.14.sh, | |
# redis-7.2.5.sh, | |
# memcached-1.6.31.sh | |
] | |
steps: | |
- uses: actions/checkout@v4 | |
# WARNING Memory overcommit must be enabled! Without it, | |
# a background save or replication may fail under low memory condition. Being disabled, | |
# it can also cause failures without low memory condition, | |
# see https://github.com/jemalloc/jemalloc/issues/1328. | |
# To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot | |
# or run the command 'sysctl vm.overcommit_memory=1' for this to take effect. | |
- name: Enable memory overcommit | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
sudo sysctl vm.overcommit_memory=1 | |
- name: Run test | |
run: | | |
cd tests | |
- name: Run test | |
run: | | |
cd tests | |
/bin/bash ${{ matrix.test_script }} |