Skip to content

Commit 1704508

Browse files
github action for test cases.
1 parent 01006b4 commit 1704508

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

workflows/node.js.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)