github actions

This commit is contained in:
paddlesteamer 2020-07-04 14:34:53 +03:00
parent da51233f06
commit 22bf2e7f5e
2 changed files with 23 additions and 1 deletions

22
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,22 @@
name: go-cache
on:
push:
jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Go
uses: actions/setuop-go@v2
with:
go-version: 1.14
- name: Check gofmt
run: test -z "$(gofmt -s -d .)"
- name: Run go vet
run: go vet ./...
- name: Test
run: go test -v

View File

@ -1117,7 +1117,7 @@ func (c *cache) Flush() map[string]*Item {
c.items = map[string]*Item{}
return m
return nil
}
type janitor struct {