Skip to content

Commit

Permalink
Update latest code
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMwita committed Feb 16, 2024
1 parent 1293acb commit a3ccccd
Show file tree
Hide file tree
Showing 7 changed files with 86 additions and 134 deletions.
4 changes: 4 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
USERNAME=sandbox
API_KEY=8472de6e658a4e345335a864c6e8d42f1181925fce73755b2d3d1954b00050a9
ENV=sandbox
PORT=8083
Empty file added .github/workflows/cd.yaml
Empty file.
82 changes: 82 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
name: Continuous Integration

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

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

runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.21.x
cache-dependency-path: "go.sum"

- name: Set up QEMU
if: matrix.os == 'ubuntu-latest'
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
if: matrix.os == 'ubuntu-latest'
uses: docker/setup-buildx-action@v3

- name: Build Binaries
run: |
make all -j $(nproc)
- name: Build docker images
if: matrix.os == 'ubuntu-latest' && github.event_name == 'pull_request'
run: |
make dockers -j $(nproc)
linting:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.21.x
cache-dependency-path: "go.sum"

- name: Checkout code
uses: actions/checkout@v4

- name: Check linting
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin latest
make lint
test:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.21.x
cache-dependency-path: "go.sum"

- name: Checkout code
uses: actions/checkout@v4

- name: Run tests
run: |
make test
- name: Install goveralls
run: go install github.com/mattn/goveralls@latest

- name: Send coverage
env:
COVERALLS_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: goveralls -coverprofile=cover.out -service=github
15 changes: 0 additions & 15 deletions domain/interfaces/sms_repo.go

This file was deleted.

1 change: 0 additions & 1 deletion domain/interfaces/sms_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ package interfaces
import "github.com/MikeMwita/at/domain/entities"

type SMSService interface {
// SendSMS sends an SMS message to the recipients and returns the response data
SendSMS(smsSender *entities.SMSSender) (*entities.SMSMessageData, error)
}
File renamed without changes.
118 changes: 0 additions & 118 deletions infrastructure/adapters/postgres_sms_adapter.go

This file was deleted.

0 comments on commit a3ccccd

Please sign in to comment.