Skip to content

Commit

Permalink
Adherence to Best Practices as stated by BadgeApp: https://www.bestpr…
Browse files Browse the repository at this point in the history
  • Loading branch information
Umang01-hash authored Jan 9, 2025
1 parent 4222651 commit 53e8b7a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,20 @@ jobs:
grep -v '/mock_' package.cov > profile.cov
go tool cover -func profile.cov
- name: Count Warnings
id: count-warnings
run: |
warning_count=$(go test gofr.dev/pkg/... -v | grep -c "WARNING" || true)
echo "Warnings found: $warning_count"
echo "warning_count=$warning_count" >> $GITHUB_ENV
- name: Fail if too many warnings
run: |
if [ ${{ env.warning_count }} -gt 10 ]; then
echo "Too many warnings: ${{ env.warning_count }}"
exit 1
fi
- name: Upload Test Coverage
if: ${{ matrix.go-version == '1.22'}}
uses: actions/upload-artifact@v4
Expand Down
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,18 @@ Help us make GoFr even better:

---

## 🔒 **Secure Cloning**
To securely clone the GoFr repository, you can use HTTPS or SSH:

### Cloning with HTTPS
```bash
git clone https://github.com/gofr-dev/gofr.git
```
### Cloning with SSH
```bash
git clone [email protected]:gofr-dev/gofr.git
```

### 🎁 **Get a GoFr T-Shirt & Stickers!**

If your PR is merged, or if you contribute by writing articles or promoting GoFr, we invite you to fill out [this form](https://forms.gle/R1Yz7ZzY3U5WWTgy5) to claim your GoFr merchandise as a token of our appreciation!
Expand Down

0 comments on commit 53e8b7a

Please sign in to comment.