Skip to content

Commit

Permalink
chore: add linter and tests workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoluiz committed Oct 15, 2020
1 parent 8fb1e92 commit bc764e5
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: linter

on:
push:
pull_request:

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Run linter
uses: golangci/golangci-lint-action@v2
23 changes: 23 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: tests

on:
push:
pull_request:

jobs:
goreleaser:
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.14
-
name: Run tests
run: go test ./...

0 comments on commit bc764e5

Please # to comment.