Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
Switch to github actions (spf13#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
cornfeedhobo authored Sep 24, 2020
1 parent 1bc8c8d commit dd1ebaf
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/pull_request_template.md
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)
-->
40 changes: 40 additions & 0 deletions .github/workflows/tests.yml
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

0 comments on commit dd1ebaf

Please sign in to comment.