Skip to content
Merged

Tests #117

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ jobs:
run: node common/scripts/install-run-rush.js install
- name: Rush validate
run: node common/scripts/install-run-rush.js validate --verbose
# - name: Rush test
# run: node common/scripts/install-run-rush.js test --verbose
- name: Rush test
run: node common/scripts/install-run-rush.js test --verbose
- name: Publish packages
if: startsWith(github.ref, 'refs/tags/v0.7.') || startsWith(github.ref, 'refs/tags/s0.7.')
env:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@hcengineering/communication-rest-client",
"comment": "Bump core",
"type": "patch"
}
],
"packageName": "@hcengineering/communication-rest-client"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@hcengineering/communication-sdk-types",
"comment": "Bump core",
"type": "patch"
}
],
"packageName": "@hcengineering/communication-sdk-types"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@hcengineering/communication-server",
"comment": "Add tests",
"type": "patch"
}
],
"packageName": "@hcengineering/communication-server"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@hcengineering/communication-types",
"comment": "Bump core",
"type": "patch"
}
],
"packageName": "@hcengineering/communication-types"
}
26 changes: 25 additions & 1 deletion common/config/rush/command-line.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,34 @@
},
"ignoreMissingScript": true,
"allowWarningsOnSuccess": false
},
{
"name": "_phase:test",
"dependencies": {
"self": ["_phase:build"],
"upstream": ["_phase:validate"]
},
"ignoreMissingScript": true,
"allowWarningsOnSuccess": true
}
],
"commands": [
{
"commandKind": "global",
"name": "coverage",
"summary": "Run tests, merge LCOV and generate HTML coverage",
"description": "Run 'rush test', then merge per-package LCOV files and generate HTML coverage in coverage/html",
"safeForSimultaneousRushProcesses": true,
"shellCommand": "rush test && node scripts/merge-coverage.js && node scripts/generate-coverage-html.js coverage/lcov.info coverage/html"
},
{
"commandKind": "phased",
"summary": "Do testing",
"name": "test",
"phases": ["_phase:build", "_phase:test"],
"enableParallelism": true,
"incremental": true
},
{
"commandKind": "phased",
"name": "build",
Expand Down Expand Up @@ -95,7 +120,6 @@
"shellCommand": "./common/scripts/node_modules/.bin/bump-changes-from-tag"
}
],

/**
* Custom "parameters" introduce new parameters for specified Rush command-line commands.
* For example, you might define a "--production" parameter for the "rush build" command.
Expand Down
Loading