Skip to content

0.26.0

0.26.0 #454

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: Node.js CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
services:
dynamo:
image: amazon/dynamodb-local:1.15.0
ports:
- 8000:8000
registry:
image: registry:2.7
ports:
- 5000:5000
options: >-
--restart always
--name registry
mongo:
image: mongo:4.0.6
ports:
- 27017:27017
redis:
image: redis:6.0.9
ports:
- 6379:6379
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.9.3
ports:
- 9200:9200
options: >-
-m "512m"
-e "discovery.type=single-node"
-e "ES_JAVA_OPTS=-Xms256m -Xmx256m"
gremlin:
image: tinkerpop/gremlin-server:3.4.4
ports:
- 8182:8182
minio:
image: minio/minio:edge-cicd
ports:
- 9000:9000
options: >-
-e "MINIO_ACCESS_KEY=minioadmin"
-e "MINIO_SECRET_KEY=minioadmin"
kinesis:
image: saidsef/aws-kinesis-local:latest
ports:
- 4567:4567
strategy:
matrix:
node-version: [15.x, 16.x, 17.x, 18.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm i && npx nyc --reporter=lcovonly npm test && npx codecov --token=3586c688-30cd-46be-a6c4-79a6e0f7fe80 --file=coverage/lcov.info && npm run lint
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}