-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from pavel-v-chernykh/add-github-actions
Add github actions
- Loading branch information
Showing
13 changed files
with
256 additions
and
64 deletions.
There are no files selected for viewing
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,38 @@ | ||
name: GitHub Actions Workflow | ||
on: [push] | ||
jobs: | ||
fmt: | ||
name: Fmt | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v2 | ||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: '1.14.4' | ||
- name: Fmt | ||
run: go fmt github.com/pavel-v-chernykh/keystore-go/... | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v2 | ||
- name: Lint | ||
uses: golangci/golangci-lint-action@v1.2.1 | ||
with: | ||
args: --timeout=5m0s -c .golangci.yaml | ||
version: v1.27 | ||
test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v2 | ||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: '1.14.4' | ||
- name: Test | ||
run: go test -cover -count=1 -v github.com/pavel-v-chernykh/keystore-go/... |
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,28 @@ | ||
modules-download-mode: readonly | ||
|
||
linters: | ||
enable-all: true | ||
disable: | ||
- gochecknoglobals | ||
- funlen | ||
- goerr113 | ||
|
||
linters-settings: | ||
gomnd: | ||
settings: | ||
mnd: | ||
checks: case,condition,return | ||
|
||
issues: | ||
exclude-rules: | ||
- path: _test\.go | ||
linters: | ||
- testpackage | ||
- maligned | ||
- dupl | ||
- linters: | ||
- gosec | ||
text: "G401: " | ||
- linters: | ||
- gosec | ||
text: "G505: " |
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,13 @@ | ||
fmt: | ||
go fmt github.com/pavel-v-chernykh/keystore-go/... | ||
|
||
lint: | ||
golangci-lint run -c .golangci.yaml | ||
|
||
test: | ||
go test -cover -count=1 -v ./... | ||
|
||
all: fmt lint test | ||
|
||
.PHONY: fmt lint test all | ||
.DEFAULT_GOAL := all |
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
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
Oops, something went wrong.