All Projects → shogo82148 → actions-setup-redis

shogo82148 / actions-setup-redis

Licence: MIT License
Setup Redis database Action

Programming Languages

typescript
32286 projects
shell
77523 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to actions-setup-redis

vale-action
The official GitHub Action for Vale -- install, manage, and run Vale with ease.
Stars: ✭ 76 (+484.62%)
Mutual labels:  github-actions
simple-slack-notify
Slack notification action that just works
Stars: ✭ 23 (+76.92%)
Mutual labels:  github-actions
angular-forum
Forum application built with Angular
Stars: ✭ 52 (+300%)
Mutual labels:  github-actions
django-security-check
Helps you continuously monitor and fix common security vulnerabilities in your Django application.
Stars: ✭ 69 (+430.77%)
Mutual labels:  github-actions
action
📦📊 GitHub Action to reports on the size of your npm package
Stars: ✭ 36 (+176.92%)
Mutual labels:  github-actions
criterion-compare-action
⚡️📊 Compare the performance of Rust project branches
Stars: ✭ 16 (+23.08%)
Mutual labels:  github-actions
python-lint
GitHub Action for Lint your code
Stars: ✭ 57 (+338.46%)
Mutual labels:  github-actions
gh-pages-action
A GitHub Action to deploy a static site on GitHub Pages.
Stars: ✭ 26 (+100%)
Mutual labels:  github-actions
cross-platform-python-gui
A fork-ready base for your new GUI application. Uses CI to automatically build executables for Linux (AppImage), Windows (exe), and MacOS (dmg)
Stars: ✭ 53 (+307.69%)
Mutual labels:  github-actions
github-run-tests-action
mabl Github Actions implementation
Stars: ✭ 39 (+200%)
Mutual labels:  github-actions
deno-action
Github action for setup Deno
Stars: ✭ 24 (+84.62%)
Mutual labels:  github-actions
npm-update-check-action
npm new package version check action for GitHub Actions.
Stars: ✭ 17 (+30.77%)
Mutual labels:  github-actions
snk
🟩⬜ Generates a snake game from a github user contributions graph and output a screen capture as animated svg or gif
Stars: ✭ 844 (+6392.31%)
Mutual labels:  github-actions
auto-card-labeler
GitHub actions to auto label a pull request or an issue based on project card move
Stars: ✭ 33 (+153.85%)
Mutual labels:  github-actions
upx-action
Strips and runs upx on binaries
Stars: ✭ 17 (+30.77%)
Mutual labels:  github-actions
Android-CICD
This repo demonstrates how to work on CI/CD for Mobile Apps 📱 using Github Actions 💊 + Firebase Distribution 🎉
Stars: ✭ 37 (+184.62%)
Mutual labels:  github-actions
gh-actions-template
Template for GitHub Actions
Stars: ✭ 26 (+100%)
Mutual labels:  github-actions
spec-prod
GitHub Action to build ReSpec/Bikeshed specs, validate output and publish to GitHub pages or W3C
Stars: ✭ 19 (+46.15%)
Mutual labels:  github-actions
nest-boilerplate
Nest.js boilerplate with CircleCI, Commitizen, Commitlint, Docker-Compose, ESLint, GitHub Actions, Husky, Lint-staged, OpenAPI, Prettier, PostGreSQL, Travis CI, TypeORM
Stars: ✭ 16 (+23.08%)
Mutual labels:  github-actions
CI-Utils
Utilities for running Common Lisp on CI platforms
Stars: ✭ 18 (+38.46%)
Mutual labels:  github-actions

actions-setup-redis

GitHub Actions status

This action sets by redis database for use in actions by:

  • optionally downloading and caching a version of redis
  • start redis-server

Motivation

  • GitHub Actions supports Docker services, and there is the official redis image. but it works on only Linux.
  • Some test utils for redis (such as Test::RedisServer) requires redis-server installed on the local host.

Usage

See action.yml

Basic:

steps:
- uses: actions/checkout@v2
- uses: shogo82148/actions-setup-redis@v1
  with:
    redis-version: '6.x'
- run: redis-cli ping

Matrix Testing:

jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os:
        - 'ubuntu-latest'
        - 'macOS-latest'
        # - 'windows-latest' # windows is currently not supported.
        redis:
        - '6.2'
        - '6.0'
        - '5.0'
        - '4.0'
    name: Redis ${{ matrix.redis }} on ${{ matrix.os }}
    steps:
      - uses: actions/checkout@v2
      - name: Setup redis
        uses: shogo82148/actions-setup-redis@v1
        with:
          redis-version: ${{ matrix.redis }}
          auto-start: "false"

      - name: tests with Test::RedisServer
        run: |
          cpanm Test::RedisServer
          prove -lv t

Configuration

redis-version

The version of Redis. The redis-version input supports the following syntax:

  • latest: the latest version of stable Redis
  • 6, 5, 4: major versions
  • 6.2, 6.0: minor versions
  • 6.2.0, 6.2.1: patch versions

The default value is latest. The actions supports only stable versions.

redis-port

The port number that redis-server listens. The default value is 6379.

redis-tls-port

The port number that redis-server listens TLS connections. The default value is 0 and TLS is disabled.

auto-start

If the auto-start is true, the action starts redis-server as a daemon. If it is false, the action just install Redis commands, doesn't start redis-server. It is a boolean value, valid values are true or false. The default value is true.

redis-conf

Extra configurations for redis.conf. See Redis configuration.

Outputs

redis-port

The port number that redis-server listens.

jobs:
  build:
    runs-on: 'ubuntu-latest'
    steps:
      - uses: actions/checkout@v2
      - id: setup
        uses: shogo82148/actions-setup-redis@v1

      # connect to the redis-server via TCP
      - run: |
          redis-cli -h 127.0.0.1 -p ${{ steps.setup.outputs.redis-port }} ping

redis-unix-socket

The unix domain socket path that redis-server listens.

jobs:
  build:
    runs-on: 'ubuntu-latest'
    steps:
      - uses: actions/checkout@v2
      - id: setup
        uses: shogo82148/actions-setup-redis@v1

      # connect to the redis-server via unix domain socket
      - run: |
          redis-cli -s ${{ steps.setup.outputs.redis-unix-socket }} ping

redis-tls-port

The port number that redis-server listens TLS connections.

redis-tls-port

The directory path for TLS sample certificates/keys.

jobs:
  build:
    runs-on: 'ubuntu-latest'
    steps:
      - uses: actions/checkout@v2
      - id: setup
        uses: shogo82148/actions-setup-redis@v1
        with:
          # TLS Support starts from v6.0.
          redis-version: "6.0"

          # TLS is disabled by default. You need extra configurations.
          redis-port: "0"
          redis-tls-port: "6379"

      # connect to the redis-server via TLS
      - run: |
          redis-cli -h 127.0.0.1 -p "${{ steps.setup.outputs.redis-tls-port }}" \
            --tls \
            --cert "${{ steps.setup.outputs.redis-tls-dir }}/redis.crt" \
            --key "${{ steps.setup.outputs.redis-tls-dir }}/redis.key" \
            --cacert "${{ steps.setup.outputs.redis-tls-dir }}/ca.crt" \
            ping

See TLS Support for more details.

License

The scripts and documentation in this project are released under the MIT License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].