Skip to content

Commit

Permalink
add github action
Browse files Browse the repository at this point in the history
  • Loading branch information
mehrdadrad committed Jan 27, 2021
1 parent deb8a03 commit 20ecef6
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/tcpdog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: "build"

on:
push:
branches:
- main
paths-ignore:
- "docs/**"
- "**.md"
pull_request:
branches:
- main
paths-ignore:
- "docs/**"
- "**.md"

jobs:
tcpdog:
name: Test and build
runs-on: ubuntu-18.04
steps:
- name: Set up Golang
uses: actions/setup-go@v2
with:
go-version: ^1.15

- name: Check out code
uses: actions/checkout@v2

- name: Build client
run: |
cd tcpdog
go build
- name: Build server
run: |
cd server
go build
- name: Test
run: go test . -timeout 5m -coverprofile=profile.cov

- name: Coveralls
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: profile.cov

0 comments on commit 20ecef6

Please sign in to comment.