Skip to content

DTONBWTWO-1073 Run CI/CD on dependabot #30

DTONBWTWO-1073 Run CI/CD on dependabot

DTONBWTWO-1073 Run CI/CD on dependabot #30

Workflow file for this run

name: NodeJS SDK CI
on:
workflow_dispatch:
push:
branches:
- master
- support/SDK-V3
- feature/**
- bugfix/**
- dependabot/**
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [8.x ,10.x, 12.x ,14.x ,16.x]
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'
- run: npm install
- run: npm run build --if-present
- run: npm run test
code-coverage:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [ 8.x ]
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'
- run: npm install
- run: npm run build --if-present
- run: npm run test-coverage
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}