Skip to content

Commit

Permalink
✨ feat: added Makefile #18 #14
Browse files Browse the repository at this point in the history
  • Loading branch information
pnguyen215 committed Jan 5, 2024
1 parent a890cba commit 1e10c21
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 15 deletions.
25 changes: 12 additions & 13 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,32 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go

name: Go
name: VoipKit workflow

on:
push:
branches: [ "master" ]
branches: ["master"]
tags:
- "v*"
pull_request:
branches: [ "master" ]
branches: ["master"]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19

- name: Build
run: go build -v ./...
- name: Build
run: go build -v ./...

- name: Test
run: go test -v ./...
- name: Test
run: go test -v ./...

create-release:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*.out

# Dependency directories (remove the comment below to include it)
# vendor/
vendor/

# Go workspace file
go.work
Expand Down
27 changes: 27 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
.PHONY: run build test tidy deps-upgrade deps-clean-cache

# ==============================================================================
# Start Main
run:
go run main.go

build:
go build main.go

# ==============================================================================
# Modules support
test:
go test -cover ./...

tidy:
go mod tidy
go mod vendor

deps-upgrade:
# go get $(go list -f '{{if not (or .Main .Indirect)}}{{.Path}}{{end}}' -m all)
go get -u -t -d -v ./...
go mod tidy
go mod vendor

deps-clean-cache:
go clean -modcache
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# GobaseVoipCore
# VoipKit

The Asterisk VOIP library, implemented in the Go programming language (Golang), is a versatile and powerful tool for building robust voice over IP (VOIP) communication systems. Leveraging the efficiency and concurrency of Golang, this library enables developers to create scalable and high-performance VOIP applications with ease.

Expand Down

0 comments on commit 1e10c21

Please sign in to comment.