GithubHelp home page GithubHelp logo

roblox-actionscache / shogo82148-actions-setup-redis Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 2.34 MB

Setup Redis database Action. Copied from https://github.com/shogo82148/actions-setup-redis

License: MIT License

TypeScript 72.76% Shell 25.20% JavaScript 2.04%

shogo82148-actions-setup-redis's Introduction

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

License

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

shogo82148-actions-setup-redis's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar shogo82148 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.