This repository has been archived by the owner on Feb 12, 2022. It is now read-only.
forked from spf13/pflag
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1bc8c8d
commit dd1ebaf
Showing
2 changed files
with
55 additions
and
0 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,15 @@ | ||
### Changes purposed in this pull request | ||
|
||
<!-- Why are you making this change? --> | ||
|
||
### Checklist | ||
|
||
- [ ] Tests have been added and/or updated | ||
- [ ] `go fmt .` has been run | ||
- [ ] `go vet .` has been run | ||
|
||
<!-- Optional: | ||
### A gif to brighten your reviewer's day and/or represents how you feel about this pull request | ||
![](place-image-url-here) | ||
--> |
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,40 @@ | ||
name: 'Tests' | ||
|
||
on: | ||
push: | ||
branches: ['master'] | ||
pull_request: {} | ||
|
||
jobs: | ||
test: | ||
name: 'Test with Go ${{ matrix.go }}' | ||
runs-on: 'ubuntu-latest' | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
go: | ||
- '1.9' | ||
- '1.10' | ||
- '1.11' | ||
- '1.12' | ||
- '1.13' | ||
- '1.14' | ||
- '1' | ||
|
||
steps: | ||
- name: Setup go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ matrix.go }} | ||
|
||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Run fmt | ||
run: diff -u <(echo -n) <(gofmt -d -s .) | ||
|
||
- name: Run vet | ||
run: go vet . | ||
|
||
- name: Run tests | ||
run: go test -v -race -cover |