All Projects → supercharge → redis-github-action

supercharge / redis-github-action

Licence: MIT License
Use Redis in GitHub Actions

Programming Languages

shell
77523 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to redis-github-action

action-ssh
GitHub Action for executing SSH commands on remote servers
Stars: ✭ 60 (+7.14%)
Mutual labels:  github-actions, github-actions-docker
latex-action
GitHub Action to compile LaTeX documents
Stars: ✭ 123 (+119.64%)
Mutual labels:  github-actions, github-actions-docker
bake-action
GitHub Action to use Docker Buildx Bake as a high-level build command
Stars: ✭ 52 (-7.14%)
Mutual labels:  github-actions, github-actions-docker
metadata-action
GitHub Action to extract metadata (tags, labels) from Git reference and GitHub events for Docker
Stars: ✭ 492 (+778.57%)
Mutual labels:  github-actions, github-actions-docker
Github-Android-Action
Android Github Action that builds Android project, runs unit tests and generates debug APK, builds for Github Actions hackathon
Stars: ✭ 29 (-48.21%)
Mutual labels:  github-actions, github-actions-docker
ghaction-cmake
cmake swiss army knife github docker action
Stars: ✭ 19 (-66.07%)
Mutual labels:  github-actions, github-actions-docker
intellij-platform-plugin-verifier-action
GitHub Action for executing the intellij-plugin-verifier
Stars: ✭ 20 (-64.29%)
Mutual labels:  github-actions, github-actions-docker
django-github-digitalocean
Continuously Deploying Django to DigitalOcean with Docker and GitHub Actions
Stars: ✭ 45 (-19.64%)
Mutual labels:  github-actions, github-actions-docker
assign-one-project-github-action
Automatically add an issue or pull request to specific GitHub Project(s) when you create and/or label them.
Stars: ✭ 140 (+150%)
Mutual labels:  github-actions, github-actions-docker
dart-package-analyzer
GitHub Action that uses the Dart Package Analyzer to compute the Pub score of Dart/Flutter packages
Stars: ✭ 44 (-21.43%)
Mutual labels:  github-actions
autoSubmit
北京大学疫情出入校自动填报
Stars: ✭ 47 (-16.07%)
Mutual labels:  github-actions
addtobasic.github.io
CUI Portfolio like ubuntu terminal.
Stars: ✭ 18 (-67.86%)
Mutual labels:  github-actions
cuda-toolkit
GitHub Action to install CUDA
Stars: ✭ 34 (-39.29%)
Mutual labels:  github-actions
composer-install
A GitHub Action to streamline installation of PHP dependencies with Composer.
Stars: ✭ 151 (+169.64%)
Mutual labels:  github-actions
ghaction-upx
GitHub Action for UPX, the Ultimate Packer for eXecutables
Stars: ✭ 27 (-51.79%)
Mutual labels:  github-actions
sokoban-action
Sokoban game using GitHub Actions 🤖
Stars: ✭ 26 (-53.57%)
Mutual labels:  github-actions
deploy-to-cocoapods-github-action
Github action for deploying to Cocoapods.org
Stars: ✭ 29 (-48.21%)
Mutual labels:  github-actions
Github-Actions-React-Native
Github Action for React Native Build 🦊
Stars: ✭ 99 (+76.79%)
Mutual labels:  github-actions
autoupdate
A GitHub Action that auto-updates pull requests branches, whenever changes are pushed to their destination branch.
Stars: ✭ 70 (+25%)
Mutual labels:  github-actions
megalinter
🦙 Mega-Linter analyzes 48 languages, 22 formats, 19 tooling formats, excessive copy-pastes, spelling mistakes and security issues in your repository sources with a GitHub Action, other CI tools or locally.
Stars: ✭ 534 (+853.57%)
Mutual labels:  github-actions


Redis in GitHub Actions

Start a Redis server in your GitHub Actions.


Usage



Follow @marcuspoehls and @superchargejs for updates!


Introduction

This GitHub Action starts a Redis server on the default port 6379.

This is useful when running tests against a Redis database.

Usage

A code example says more than a 1000 words. Here’s an exemplary GitHub Action using a Redis server in versions 4 and 5 to test a Node.js app:

name: Run tests

on: [push]

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node-version: [10.x, 12.x, 14.x]
        redis-version: [4, 5, 6]

    steps:
    - name: Git checkout
      uses: actions/checkout@v2

    - name: Use Node.js ${{ matrix.node-version }}
      uses: actions/setup-node@v1
      with:
        node-version: ${{ matrix.node-version }}

    - name: Start Redis
      uses: supercharge/[email protected]
      with:
        redis-version: ${{ matrix.redis-version }}

    - run: npm install

    - run: npm test
      env:
        CI: true

Using Redis on a Custom Port

You can start the Redis instance on a custom port using the redis-port input:

name: Run tests

on: [push]

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node-version: [14.x, 16.x]
        redis-version: [4, 5, 6]

    steps:
    - name: Start Redis
      uses: supercharge/[email protected]
      with:
        redis-version: ${{ matrix.redis-version }}
        redis-port: 12345

    - name: 

Using a Custom Container Name

This GitHub Action provides a Redis Docker container. The default container name is redis. It can be helpful to customize the container name. For example, when running multiple Redis instances in parallel. You can customize the container name using the redis-container-name input:

name: Run tests

on: [push]

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node-version: [14.x, 16.x]
        redis-version: [4, 5, 6]

    steps:
    - name: Start Redis
      uses: supercharge/[email protected]
      with:
        redis-version: ${{ matrix.redis-version }}
        redis-container-name: redis-auth-token-cache

    - name: 

License

MIT © Supercharge


superchargejs.com  ·  GitHub @supercharge  ·  Twitter @superchargejs

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].