Skip to content

Add redis service to tests #2

Add redis service to tests

Add redis service to tests #2

Workflow file for this run

name: Run Tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
services:
redis:
image: redis:latest
ports:
- 6379:6379
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Enable Corepack
run: corepack enable
- name: Install dependencies
run: yarn install
- name: Run tests
env:
REDIS_HOST: 127.0.0.1
REDIS_PORT: 6379
run: yarn test