-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (38 loc) · 1.2 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Test
on: push
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
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 }}