Skip to content

Commit

Permalink
Try adding danger tooling
Browse files Browse the repository at this point in the history
  • Loading branch information
radeknovis committed Dec 19, 2023
1 parent 8218573 commit a0004cf
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: ci

on:
push:
branches:
- feat/danger
pull_request:
branches:
- develop
Expand Down Expand Up @@ -77,6 +80,11 @@ jobs:
shell: bash
run: make relay_tests RELAY_HOST=relay.walletconnect.com PROJECT_ID=${{ secrets.PROJECT_ID }}

- name: Danger
uses: danger/danger
env:
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
if: success() || failure()
Expand Down
7 changes: 7 additions & 0 deletions Dangerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Make it more obvious that a PR is a work in progress and shouldn't be merged yet
warn("PR is classed as Work in Progress") if github.pr_title.include? "[WIP]"

# Warn when there is a big PR
warn("Big PR") if git.lines_of_code > 500

failure("Please provide a summary in the Pull Request description") if vsts.pr_body.length < 5
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@
"repositoryURL": "https://github.com/WalletConnect/web3modal-swift",
"state": {
"branch": null,
"revision": "3295d69d1b12df29a5040578d107f56986b1b399",
"version": "1.0.13"
"revision": "017e5645be65d23725f74d7482151cce75c68504",
"version": "1.0.15"
}
}
]
Expand Down

0 comments on commit a0004cf

Please sign in to comment.