File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,14 +24,25 @@ jobs:
2424 node-version : ${{ matrix.node-version }}
2525 - name : Install dependencies
2626 run : npm install
27+ - name : Install NYC
28+ run : npm install -g nyc
29+ - name : Install Mocha
30+ run : npm install -g mocha
2731 - name : Start Redis
2832 uses : supercharge/redis-github-action@1.4.0
2933 with :
3034 redis-version : ${{ matrix.redis-version }}
3135 redis-port : 6380
36+ redis-container-name : redis-6380
3237 - name : Start Redis
3338 uses : supercharge/redis-github-action@1.4.0
3439 with :
3540 redis-version : ${{ matrix.redis-version }}
3641 redis-port : 6381
37- - run : source test/env/inMemory.sh && nyc --silent --no-clean ./node_modules/.bin/mocha --recursive "./test/*.js" --exit && source test/env/redis.sh && nyc --silent --no-clean ./node_modules/.bin/mocha --recursive "./test/*.js" --exit && nyc report
42+ redis-container-name : redis-6381
43+ - name : Run In-Memory test cases
44+ run : source test/env/inMemory.sh && nyc -no-clean mocha --recursive "./test/*.js" --exit
45+ - name : Run Redis test cases
46+ run : source test/env/redis.sh && nyc -no-clean mocha --recursive "./test/*.js" --exit
47+ - name : Aggregate test coverage
48+ run : nyc report
You can’t perform that action at this time.
0 commit comments