Skip to content

Add redis with container and update node and pg #164

Add redis with container and update node and pg

Add redis with container and update node and pg #164

Workflow file for this run

name: Testing CI
on: pull_request
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node:
- 18
- 20
os:
- ubuntu-latest
- windows-latest
- macos-latest
redis:
- 7
services:
redis:
image: 'redis:${{ matrix.redis }}'
ports:
- 6379:6379
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm ci
- run: npm run dotest
env:
MODE: test
REDIS_HOST: redis