Apply formatting to library source #51
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: Testing | |
on: | |
push: | |
branches: "**" | |
pull_request: | |
branches: "**" | |
jobs: | |
BuildAndTest: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Submodule init | |
run: git submodule init && git submodule update --recursive | |
- name: Add packages.redis.io key | |
run: curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg | |
- name: Install packages.redis.io key | |
run: echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list | |
- name: Install depedencies | |
run: sudo apt -y update && sudo apt -y install redis parallel | |
- name: Redis version check | |
run: redis-cli info | grep redis_version | |
- name: Build tests | |
run: cd test && make | |
- name: Run tests | |
run: cd test && make run |