Skip to content

Commit

Permalink
Merge pull request #8 from MikeMwita/devmike
Browse files Browse the repository at this point in the history
Devmike
  • Loading branch information
MikeMwita authored Mar 23, 2024
2 parents 851aad7 + 9683e35 commit f179681
Show file tree
Hide file tree
Showing 2 changed files with 92 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ name: Continuous Integration

on:
pull_request:
branches: [main]
branches: [master]
push:
branches: [main]
branches: [master]

jobs:
build-across-platforms:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, windows-latest]

runs-on: ${{ matrix.os }}
steps:
Expand Down Expand Up @@ -61,10 +61,16 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Run tests
- name: Run Unit tests
run: |
make test
go test -race -covermode atomic -coverprofile=covprofile ./...
- name: Install goveralls
run: go install github.com/mattn/goveralls@latest
- name: Send coverage
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: goveralls -coverprofile=covprofile -service=github




80 changes: 80 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@

# Contributing to African's Talking Go SDK

We welcome contributions from the community! If you'd like to contribute to the African's Talking Go SDK, please follow these guidelines.

## Setting Up Your Environment

Before you can contribute, you need to set up your development environment. Here's how you can do it:

1. **Fork the Repository**
- Go to the [African's Talking Go SDK repository](https://github.com/MikeMwita/africastalking-go).
- Click on the "Fork" button in the top-right corner of the page and clone your fork.


3. **Install Dependencies**
- Navigate to the cloned repository directory in your terminal.
- Run the following command to install the necessary dependencies:
```bash
go mod tidy
```

4. **Create a New Branch**
- Create a new branch for your feature or bug fix:
```bash
git checkout -b your-branch-name
```
- Replace `your-branch-name` with a descriptive name for your branch.

## Making Changes

1. **Make Your Changes**
- Open the project in your favorite IDE or editor.
- Make your changes to the codebase.

2. **Write Tests**
- Add tests that cover the changes you've made.
- Ensure all tests pass by running:
```bash
go test -cover ./...
```
3. **Document Your Changes**
- Update the `README.md` if necessary.
- Add comments to your code where appropriate.
4. **Commit Your Changes**
- Stage your changes for commit:
```bash
git add .
```
- Commit your changes with a descriptive message:
```bash
git commit -m "Add a brief description of your changes"
```
5. **Push to Your Fork**
- Push your changes to your fork on GitHub:
```bash
git push origin your-branch-name
```
## Submitting a Pull Request
1. **Open a Pull Request**
- Click on "Pull requests" and then the "New pull request" button.
- Choose your fork and branch as the source and the original repository's main branch as the target.
- Fill in the pull request template with information about your changes.

2. **Code Review**
- Wait for the maintainers to review your pull request.
- Make any requested changes.

3. **Merge**
- Once your pull request is approved, the maintainers will merge it into the main codebase.

Thank you for contributing to the African's Talking Go SDK!
---
Happy coding! 🚀

0 comments on commit f179681

Please sign in to comment.