Skip to content

chore(deps): bump the npm_and_yarn group with 2 updates (#177) #395

chore(deps): bump the npm_and_yarn group with 2 updates (#177)

chore(deps): bump the npm_and_yarn group with 2 updates (#177) #395

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20]
db: [mongodb, redis]
include:
- db: mongodb
image: mvertes/alpine-mongo
options: >-
--health-cmd mongo
--health-interval 10s
--health-timeout 5s
--health-retries 10
port: 27017
- db: redis
image: redis
port: 6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
services:
db:
image: ${{ matrix.image }}
options: ${{ matrix.options }}
ports:
- ${{ matrix.port }}:${{ matrix.port }}
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Test ${{ matrix.db }}
run: |
npm install
npm run test
env:
DB: ${{ matrix.db }}