Skip to content

Commit

Permalink
test: update github pipelines (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
amagyar-iohk authored Aug 22, 2023
1 parent 7f3c98e commit 59922c4
Show file tree
Hide file tree
Showing 5 changed files with 87 additions and 20 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ concurrency:
cancel-in-progress: true
on:
pull_request:
push:
branches:
- "master"

Expand Down Expand Up @@ -40,7 +39,19 @@ jobs:
- name: Build
run: npm run build

- name: Publish coverage
uses: ArtiomTr/jest-coverage-report-action@v2
- name: Run coverage test
run: npm run coverage

- name: Jest Coverage Comment
uses: MishaKav/jest-coverage-comment@v1.0.23
with:
coverage-summary-path: coverage/coverage-summary.json
junitxml-path: coverage/junit.xml
junitxml-title: JUnit

- name: Publish lcov report
uses: actions/upload-artifact@v3
with:
threshold: 30
name: lcov-report.zip
path: coverage/lcov-report
if-no-files-found: error
7 changes: 5 additions & 2 deletions .releaserc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,12 @@ plugins:
'package.json',
'package-lock.json',
'CHANGELOG.md',
'integration-tests/e2e-tests/**/*'
'integration-tests/e2e-tests/package.json',
'integration-tests/e2e-tests/yarn.lock'
],
message: 'chore(release): release ${nextRelease.version}\n\n${nextRelease.notes}'
message: 'chore(release): release ${nextRelease.version}
${nextRelease.notes}'
}
]
- [ "semantic-release-slack-bot",
Expand Down
25 changes: 12 additions & 13 deletions integration-tests/e2e-tests/tests/sdk/src/SdkAgentWorkflow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,20 +101,20 @@ export class SdkAgentWorkflow {
static async verifyNewCredential(edgeAgent: Actor) {
await edgeAgent.attemptsTo(
Wait.upTo(Duration.ofSeconds(30))
.until(
Questions.getArraySize('credential offer stack',this.credentialOfferStack),
equals(1)
)
.until(
Questions.getArraySize('credential offer stack',this.credentialOfferStack),
equals(1)
)
)
}

static async waitToReceiveIssuedCredential(edgeAgent: Actor) {
await edgeAgent.attemptsTo(
Wait.upTo(Duration.ofSeconds(30))
.until(
Questions.getArraySize('issued credential stack',this.issuedCredentialStack),
equals(1)
)
.until(
Questions.getArraySize('issued credential stack',this.issuedCredentialStack),
equals(1)
)
)
}

Expand All @@ -137,10 +137,10 @@ export class SdkAgentWorkflow {
static async waitForProofRequest(edgeAgent: Actor) {
await edgeAgent.attemptsTo(
Wait.upTo(Duration.ofSeconds(30))
.until(
Questions.getArraySize('proof of request stack', this.proofRequestStack),
equals(1)
)
.until(
Questions.getArraySize('proof of request stack', this.proofRequestStack),
equals(1)
)
)
}

Expand All @@ -159,5 +159,4 @@ export class SdkAgentWorkflow {
static async stop() {
await this.edgeAgent.stop()
}

}
31 changes: 31 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 24 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
"html-webpack-plugin": "^5.5.0",
"inversify": "^6.0.1",
"jest": "^29.5.0",
"jest-junit": "^16.0.0",
"json-loader": "^0.5.7",
"mini-css-extract-plugin": "^2.7.3",
"path-browserify": "^1.0.1",
Expand Down Expand Up @@ -139,7 +140,29 @@
"moduleFileExtensions": [
"js",
"ts"
]
],
"coverageReporters": [
"json-summary",
"lcov",
"text"
],
"reporters": [
"default",
"jest-junit"
],
"coverageThreshold": {
"global": {
"branches": 22,
"functions": 33,
"lines": 34,
"statements": 34
}
},
"coverageDirectory": "coverage"
},
"jest-junit": {
"outputDirectory": "coverage",
"outputName": "junit.xml"
},
"dependencies": {
"@scure/bip32": "^1.3.0",
Expand Down

0 comments on commit 59922c4

Please sign in to comment.