mirror of https://github.com/etcd-io/bbolt.git
.github: Move from travis to github actions
parent
fd6c0aa81a
commit
ff70d213eb
.github/workflows
|
@ -0,0 +1,16 @@
|
||||||
|
name: Tests
|
||||||
|
on: [push, pull_request]
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-go@v2
|
||||||
|
with:
|
||||||
|
go-version: "1.17.8"
|
||||||
|
- run: make fmt
|
||||||
|
- run: make race
|
||||||
|
- run: make test
|
||||||
|
# Enable when fixed (same as make lint)
|
||||||
|
# - name: golangci-lint
|
||||||
|
# uses: golangci/golangci-lint-action@v2
|
18
.travis.yml
18
.travis.yml
|
@ -1,18 +0,0 @@
|
||||||
language: go
|
|
||||||
go_import_path: go.etcd.io/bbolt
|
|
||||||
|
|
||||||
sudo: false
|
|
||||||
|
|
||||||
go:
|
|
||||||
- 1.15
|
|
||||||
|
|
||||||
before_install:
|
|
||||||
- go get -v golang.org/x/sys/unix
|
|
||||||
- go get -v honnef.co/go/tools/...
|
|
||||||
- go get -v github.com/kisielk/errcheck
|
|
||||||
|
|
||||||
script:
|
|
||||||
- make fmt
|
|
||||||
- make test
|
|
||||||
- make race
|
|
||||||
# - make errcheck
|
|
Loading…
Reference in New Issue