Skip to content

Commit 8da2a4a

Browse files
committed
Move from Travis CI to Github Actions
1 parent 0d33eb4 commit 8da2a4a

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

.github/workflows/build.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Set up Go
16+
uses: actions/setup-go@v2
17+
with:
18+
go-version: 1.11
19+
20+
- name: Build
21+
run: go build -v .
22+
23+
- name: Test
24+
run: go test -v . -race -cover -coverprofile=coverage.txt
25+
26+
- name: Upload coverage report
27+
uses: codecov/codecov-action@v2
28+
with:
29+
file: ./coverage.txt
30+
fail_ci_if_error: true
31+
verbose: true

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# lsmtree
22

3-
[![Build Status](https://app.travis-ci.com/krasun/lsmtree.svg?branch=main)](https://app.travis-ci.com/krasun/lsmtree)
3+
[![Build](https://github.com/krasun/lsmtree/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/krasun/lsmtree/actions/workflows/build.yml)
44
[![codecov](https://codecov.io/gh/krasun/lsmtree/branch/main/graph/badge.svg?token=8NU6LR4FQD)](https://codecov.io/gh/krasun/lsmtree)
55
[![Go Report Card](https://goreportcard.com/badge/github.com/krasun/lsmtree)](https://goreportcard.com/report/github.com/krasun/lsmtree)
66
[![GoDoc](https://godoc.org/https://godoc.org/github.com/krasun/lsmtree?status.svg)](https://godoc.org/github.com/krasun/lsmtree)

0 commit comments

Comments
 (0)