File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3636 - name : Run Integration tests
3737 run : DEBUG=replay* npm run coverage || echo 'Test run failed replay no longer is working with latest nano which uses node fetch'
3838
39+ - name : Upload coverage report
40+ uses : actions/upload-artifact@v5
41+ if : success() || failure()
42+ with :
43+ name : coverage
44+ path : coverage/
45+ retention-days : 3
46+
3947 - name : Start docker compose services
4048 run : docker compose up -d && sleep 5
4149
5462 SOURCE_URL : ${{ secrets.SOURCE_URL }}
5563 DEBUG : ' none'
5664
65+ - name : Show docker compose logs
66+ if : success() || failure()
67+ run : docker compose logs --no-color --timestamps || true
68+
5769 - name : Coveralls
5870 if : success() || failure()
5971 uses : coverallsapp/github-action@master
Original file line number Diff line number Diff line change @@ -10,5 +10,5 @@ module.exports = {
1010 functions : 65 ,
1111 lines : 76 ,
1212 statements : 76 ,
13- reporter : [ 'text' , 'lcov' ] ,
13+ reporter : [ 'html' , ' text', 'lcov' ] ,
1414} ;
Original file line number Diff line number Diff line change 6262 },
6363 "scripts" : {
6464 "docker:build" : " docker build -t fielddb-auth ." ,
65- "test:integration " : " echo 'module.exports = { usersDbConnection: { url: \" http://couchdb:5984\" } };' > config/local.js && docker compose up -d && sleep 3 && docker compose logs && npm run setup && npm run test:deprecated" ,
65+ "test:e2e " : " echo 'module.exports = { usersDbConnection: { url: \" http://couchdb:5984\" } };' > config/local.js && docker compose up -d && sleep 3 && docker compose logs && npm run setup && npm run test:deprecated" ,
6666 "docker:test:no-cache" : " echo 'module.exports = { usersDbConnection: { url: \" http://couchdb:5984\" } };' > config/local.js && docker compose build --no-cache && docker compose up -d && sleep 15 && docker compose logs && npm run setup && npm run test:deprecated" ,
6767 "coverage" : " NODE_ENV=test BUNYAN_LOG_LEVEL=FATAL nyc npm test" ,
6868 "lint" : " eslint " ,
7171 "start" : " node ./bin/www.js" ,
7272 "test" : " SOURCE_URL=${SOURCE_URL:-https://public:none@corpusdev.example.org} NODE_ENV=test NODE_TLS_REJECT_UNAUTHORIZED=0 mocha --timeout 100000 --recursive test" ,
7373 "test:debug" : " node-debug _mocha test/integration/oauth.js" ,
74- "test:deprecated" : " DEBUG=${DEBUG:-lib:user} REPLAY=bloody NODE_TLS_REJECT_UNAUTHORIZED=0 URL=https://localhost:3183 nyc mocha --timeout 25000 test/routes/deprecated-spec.js" ,
74+ "test:deprecated" : " DEBUG=${DEBUG:-lib:user} REPLAY=bloody NODE_TLS_REJECT_UNAUTHORIZED=0 URL=https://localhost:3183 mocha --timeout 25000 test/routes/deprecated-spec.js" ,
7575 "test:fielddb" : " NODE_ENV=localhost jasmine-node node_modules/fielddb/tests" ,
7676 "test:production" : " ls config/production.js" ,
7777 "watch" : " nodemon ./bin/www.js"
You can’t perform that action at this time.
0 commit comments