File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : UniCache CI
2+
3+ on :
4+ push :
5+ branches : [ "prep_for_ph_launch" ]
6+ pull_request :
7+ branches : [ "master" ]
8+
9+ jobs :
10+ build :
11+
12+ runs-on : ubuntu-latest
13+
14+ strategy :
15+ matrix :
16+ node-version : [16.x, 18.x]
17+ redis-version : [6]
18+
19+ steps :
20+ - uses : actions/checkout@v3
21+ - name : Use Node.js ${{ matrix.node-version }}
22+ uses : actions/setup-node@v3
23+ with :
24+ node-version : ${{ matrix.node-version }}
25+ - name : Install dependencies
26+ run : npm install
27+ - name : Start Redis
28+ uses : supercharge/redis-github-action@1.4.0
29+ with :
30+ redis-version : ${{ matrix.redis-version }}
31+ redis-port : 6380
32+ - name : Start Redis
33+ uses : supercharge/redis-github-action@1.4.0
34+ with :
35+ redis-version : ${{ matrix.redis-version }}
36+ 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
You can’t perform that action at this time.
0 commit comments