Skip to content

Commit

Permalink
Let's try out github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
nlowe committed Sep 1, 2019
1 parent cf26db8 commit 8d819b6
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CI
on: [push, pull_request]

jobs:
CI:
name: CI
runs-on: ubuntu-latest
steps:
- name: Setup
uses: actions/setup-go@v1
with:
go-version: 1.12

- name: Get Sources
uses: actions/checkout@v1

- name: Get Tools
run: |
GO111MODULE=off go get -u github.com/golangci/golangci-lint/cmd/golangci-lint
GO111MODULE=off github.com/mattn/goveralls
- name: Lint
run: golangci-lint run ./...

- name: Run Tests
run: go test -v -cover -coverprofile=./coverage.out ./...

# - name: Publish Coverage
# uses: coverallsapp/github-action@master
# with:
# github-token: ${{ secrets.github_token }}

0 comments on commit 8d819b6

Please sign in to comment.