forked from danitseitlin/redis-cloud-api-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (29 loc) · 857 Bytes
/
unit-testing.yml
File metadata and controls
30 lines (29 loc) · 857 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Unit testing
on:
workflow_dispatch:
pull_request:
branches: [master]
jobs:
CI:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: 'Setting up NPM'
run: npm install && npm run build
- name: 'Running unit tests on general requests'
run: npm run general-unit-tests
- name: 'Running unit tests on cloud account requests'
run: npm run cloud-account-unit-tests
- name: 'Running unit tests on subscription requests'
run: npm run subscription-unit-tests
- name: 'Running unit tests on database requests'
run: npm run database-unit-tests
env:
CI: true