-
Notifications
You must be signed in to change notification settings - Fork 29
43 lines (43 loc) · 1.14 KB
/
Testing.yaml
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: Redis-LevelDB Testing
on:
push:
branches:
- master
pull_request:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macOS-latest
arch:
- x64
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
# - name: Checkout submodules
# run: git submodule update --init --recursive
- name: Install Dependencies
run: |
if [ `uname` = "Linux" ]; then
sudo apt-get update -qq -y;
sudo apt-get install libsnappy-dev libev-dev libgmp-dev cpanminus perl -y;
sudo cpanm --quiet --notest --skip-satisfied --force Redis;
elif [ `uname` = "Darwin" ]; then
brew update;
brew install snappy;
brew install libev;
brew install gmp;
brew install cpanminus;
sudo cpanm --quiet --notest --skip-satisfied --force Redis;
fi
- name: Build
run: make
- name: Unit Testing
run: |
make test
echo "Ready for packaging..."