Skip to content

Added Tests CI #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jan 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/modes/.env.oss_cluster
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
IMAGE=redislabs/redis:latest
RE_USERNAME=test@test.com
RE_PASS=12345
RE_CLUSTER_NAME=test
OSS_CLUSTER=true
DB_PORT=6378
6 changes: 6 additions & 0 deletions .github/workflows/modes/.env.proxy
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
IMAGE=redislabs/redis:latest
RE_USERNAME=test@test.com
RE_PASS=12345
RE_CLUSTER_NAME=test
OSS_CLUSTER=false
DB_PORT=6379
44 changes: 44 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Tests

on:
push:
branches:
- main
- '[0-9].[0-9]'
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:

build_cluster:
name: Redis EE (${{ matrix.type }})
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
type:
- proxy
- oss_cluster

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Load dotnenv for CI
uses: xom9ikk/dotenv@v2
with:
path: .github/workflows/modes
mode: ${{ matrix.type }}

- name: Build cluster
run: |
./build.sh
sleep 5
- name: Run PING command
run: |
docker-compose exec -T master-node bash -c "/opt/redislabs/bin/redis-cli -p ${{ env.DB_PORT }} ping"