Skip to content

Instantly share code, notes, and snippets.

@ethomson
Created December 20, 2019 23:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ethomson/466de42a3066a4fa646240f5fa20293b to your computer and use it in GitHub Desktop.
Save ethomson/466de42a3066a4fa646240f5fa20293b to your computer and use it in GitHub Desktop.
name: Redis Service Example
on: push
jobs:
talk-to-redis:
runs-on: ubuntu-latest
services:
redis:
image: redis
ports:
- 6379/tcp
steps:
- uses: actions/checkout@v1
- run: npm ci
working-directory: ./redis
- run: node client.js
working-directory: ./redis
env:
REDIS_HOST: localhost
REDIS_PORT: ${{ job.services.redis.ports[6379] }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment