Skip to content

Commit

Permalink
ci: Re-enable integration and final job changes.
Browse files Browse the repository at this point in the history
Signed-off-by: Vasil Boyadzhiev <[email protected]>
  • Loading branch information
san-est committed Oct 3, 2024
1 parent bcdc0da commit a040037
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
27 changes: 13 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,16 +119,16 @@ jobs:
# Wait for the network to fully start
sleep 30
# - name: Run Hedera SDK Integration Tests
# if: ${{ steps.build-sdk.conclusion == 'success' && steps.start-local-node.conclusion == 'success' && !cancelled() && always() }}
# run: ${{ env.CG_EXEC }} task test:integration
- name: Run Hedera SDK Integration Tests
if: ${{ steps.build-sdk.conclusion == 'success' && steps.start-local-node.conclusion == 'success' && !cancelled() && always() }}
run: ${{ env.CG_EXEC }} task test:integration:codecov

# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# files: ./coverage/lcov.info
# fail_ci_if_error: false
- name: Upload coverage to Codecov
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/lcov.info
fail_ci_if_error: false

- name: Stop the local node
id: stop-local-node
Expand All @@ -150,11 +150,6 @@ jobs:
if: ${{ steps.build-sdk.conclusion == 'success' && steps.stop-local-node.conclusion == 'success' && !cancelled() && always() }}
run: ${{ env.CG_EXEC }} task test:unit:codecov

- name: Echo folder contents
run: |
echo "Folder contents:"
ls -R ./
- name: Upload @hashgraph/cryptography coverage to Codecov
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
with:
Expand All @@ -166,6 +161,10 @@ jobs:
if: ${{ steps.build-sdk.conclusion == 'success' && steps.stop-local-node.conclusion == 'success' && steps.playwright-deps.conclusion == 'success' && !cancelled() && always() }}
run: ${{ env.CG_EXEC }} task test:unit

- name: Codecov @hashgraph/sdk
if: ${{ steps.build-sdk.conclusion == 'success' && steps.stop-local-node.conclusion == 'success' && !cancelled() && always() }}
run: ${{ env.CG_EXEC }} task test:unit:codecov

- name: Upload @hashgraph/sdk coverage to Codecov
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
with:
Expand Down
6 changes: 3 additions & 3 deletions packages/cryptography/Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ tasks:
cmds:
- npx mocha --inline-diffs -r @babel/register -r chai/register-expect.js "test/unit/*.js" {{.CLI_ARGS}}

"test:unit:codecov":
"test:unit:codecov":
cmds:
- npx c8 --reporter=lcov --reporter=text-summary ./node_modules/.bin/mocha --inline-diffs -r @babel/register -r chai/register-expect.js "test/unit/*.js" {{.CLI_ARGS}}
- npx c8 report
- npx nyc --reporter=lcov --reporter=text-summary mocha --inline-diffs -r @babel/register -r chai/register-expect.js "test/unit/*.js" {{.CLI_ARGS}}
- npx nyc report

"test:unit:browser":
cmds:
Expand Down

0 comments on commit a040037

Please sign in to comment.