Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(tests): add coverage reports #4109

Draft
wants to merge 4 commits into
base: v2.0
Choose a base branch
from
Draft
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
12 changes: 12 additions & 0 deletions .github/workflows/pr_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ on:
branches:
- v2.0

concurrency:
# Support push/pr as event types with different behaviors each:
# 1. push: queue up builds
# 2. pr: only allow one run per PR
group: ${{ github.workflow }}-${{ github.event.type }}${{ github.event.pull_request.number }}
# If there is already a workflow running for the same pull request, cancel it
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -87,3 +95,7 @@ jobs:
with:
name: build-artifacts
- run: npm run test --prefix=${{ matrix.test-prefix }}
- uses: actions/upload-artifact@v4
with:
name: coverage
path: ${{ matrix.test-prefix }}/coverage
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ setup
result*
ops/grafana/grafana.ini
.rollup.cache
coverage

# react native module
## Android/IJ
Expand Down Expand Up @@ -64,4 +65,4 @@ DerivedData
*.hmap
*.ipa
*.xcuserstate
project.xcworkspace
project.xcworkspace
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ To ensure all packages lint, build and test correctly, we can run the following
> which will be generated for you when you set up a new project on [WalletConnect Cloud](https://cloud.walletconnect.com).

```zsh
TEST_PROJECT_ID=YOUR_PROJECT_ID npm run check
TEST_RELAY_URL=wss://relay.walletconnect.com TEST_PROJECT_ID=YOUR_PROJECT_ID npm run check
```

## Command Overview
Expand Down
Loading
Loading