Skip to content

chore(deps): bump @babel/traverse (#173) #371

chore(deps): bump @babel/traverse (#173)

chore(deps): bump @babel/traverse (#173) #371

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: [14, 16, 18]
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 }}