Skip to content

Commit

Permalink
Add ci github action
Browse files Browse the repository at this point in the history
  • Loading branch information
gtuk committed Jun 5, 2021
1 parent 006f920 commit 0bfe716
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: CI

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

jobs:
test:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
-
name: Format
run: if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then exit 1; fi
-
name: Test
run: go test -race ./...
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ Download the latest release from github
### TODOS
* Tests
* Better documentation
* Docker image

0 comments on commit 0bfe716

Please sign in to comment.