-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CI, Makefile and PR template (#73)
* Add basic build commands * Add PR template * Add GHA CI * Remove .drone.yml
- Loading branch information
Showing
6 changed files
with
61 additions
and
17 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
## Issue: <!-- link the issue or issues this PR resolves here --> | ||
|
||
<!-- If your PR depends on changes from other PRs, link them here and describe | ||
why they are needed for your solution section. --> | ||
|
||
## Problem | ||
|
||
<!-- Describe the root cause of the issue you are resolving. This may include | ||
what behavior is observed and why it is not desirable. If this is a new feature, | ||
describe why we need it and how it will be used. --> | ||
|
||
## Solution | ||
|
||
<!-- Describe what you changed to fix the issue. Relate your changes to the | ||
original bug/feature and explain why this addresses the issue. --> | ||
|
||
## CheckList | ||
|
||
<!-- | ||
Test: | ||
PRs should be accompanied by tests, even if there isn't a single test yet. | ||
If this PR does not require additional tests, state the reason below for reviewers. | ||
--> | ||
- [ ] Test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: CI | ||
on: [push, pull_request] | ||
jobs: | ||
ci: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
# https://github.com/actions/checkout/releases/tag/v4.1.1 | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
- name: Install Go | ||
# https://github.com/actions/setup-go/releases/tag/v5.0.0 | ||
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 | ||
with: | ||
go-version-file: 'go.mod' | ||
- run: make test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
.idea | ||
.idea | ||
/client/client | ||
/dummy/dummy | ||
/server/server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
all: client dummy server | ||
|
||
client: | ||
go build -o client/client ./client | ||
|
||
dummy: | ||
go build -o dummy/dummy ./dummy | ||
|
||
server: | ||
go build -o server/server ./server | ||
|
||
test: | ||
go test -race -cover ./... | ||
|
||
.PHONY: all client dummy server test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters