Skip to content

Commit

Permalink
Add selection for Redis installation in GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
tichon29 committed Apr 30, 2024
1 parent bd93e3c commit 342a08e
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/redis_test.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,33 @@
name: Redis Test Task
on:
workflow_dispatch:
inputs:
redis_install_mode:
description: Select the Redis Install mode
required: true
default: gha
type: choice
options:
- gha
- aptget
jobs:
redis-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f #ref v2
- name: Install redis
- name: Install redis Github action
if: ${{ github.event.inputs.redis_install_mode == 'gha' }}
uses: shogo82148/actions-setup-redis@v1
with:
redis-version: "7.x"
- name: Install Redis using apt-get
if: ${{ github.event.inputs.redis_install_mode == 'aptget' }}
run: |
sudo apt-get update
sudo apt-get install -y redis-tools redis-server
- name: Install net tools
run: |
sudo apt-get update
#sudo apt-get install -y redis-tools redis-server
sudo apt-get install -y net-tools
- name: Install node
uses: actions/setup-node@v4
Expand Down

0 comments on commit 342a08e

Please sign in to comment.