Go to file
Marcus Pöhls 1a94c02d06 use Node.js action 2019-12-17 15:29:54 +01:00
.github/workflows add name 2019-12-17 15:04:12 +01:00
.eslintrc.json use Node.js action 2019-12-17 15:29:54 +01:00
.gitignore use Node.js action 2019-12-17 15:29:54 +01:00
CHANGELOG.md initial 2019-12-17 13:44:54 +01:00
LICENSE Initial commit 2019-12-17 13:26:53 +01:00
README.md remove badge 2019-12-17 14:58:46 +01:00
action.yml use Node.js action 2019-12-17 15:29:54 +01:00
package.json use Node.js action 2019-12-17 15:29:54 +01:00
start-redis.js use Node.js action 2019-12-17 15:29:54 +01:00

README.md



Redis GitHub Action

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. Heres 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: [8.x, 10.x, 12.x, 13.x]
        redis-version: [4, 5]

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

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

    - name: Start Redis
      uses: superchargejs/redis-github-action@v1
      with:
        redis-version: ${{ matrix.redis-version }}

    - run: npm install

    - run: npm test
      env:
        CI: true

License

MIT © Supercharge


superchargejs.com  ·  GitHub @superchargejs  ·  Twitter @superchargejs