Skip to content

Commit 82aaa29

Browse files
authored
ci: move from travis to github actions (#146)
1 parent 606435c commit 82aaa29

File tree

5 files changed

+39
-27
lines changed

5 files changed

+39
-27
lines changed

.github/workflows/ci.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout Code
10+
uses: actions/checkout@v2
11+
12+
- name: Set up Go
13+
uses: actions/setup-go@v2
14+
with:
15+
go-version: 1.15
16+
17+
- name: Set up Tools
18+
run: |
19+
go get -u github.com/fzipp/gocyclo/cmd/gocyclo
20+
go get -u github.com/mattn/goveralls
21+
go get -u golang.org/x/lint/golint
22+
23+
- name: Test
24+
run: |
25+
make test
26+
27+
- name: Test for Race Conditions
28+
run: make test-race
29+
30+
- name: Benchmark
31+
run: make bench
32+
33+
- name: Upload Coverage Report
34+
env:
35+
COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
36+
run: goveralls -service=travis-pro -coverprofile=.coverprofile

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/.idea/
22
/demo*
33
/profile/
4-
.coverprofile
4+
.coverprofile
5+
*.swp

.travis.yml

-22
This file was deleted.

Makefile

-3
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ profile:
3535
test: fmt lint vet cyclo
3636
go test -cover -coverprofile=.coverprofile $(shell go list ./...)
3737

38-
test-min: lint vet
39-
go test -cover -coverprofile=.coverprofile $(shell go list ./...)
40-
4138
test-race:
4239
go run -race ./cmd/demo-progress/demo.go
4340

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# go-pretty
22

33
[![Go Reference](https://pkg.go.dev/badge/github.com/jedib0t/go-pretty/v6.svg)](https://pkg.go.dev/github.com/jedib0t/go-pretty/v6)
4-
[![Build Status](https://travis-ci.com/jedib0t/go-pretty.svg?branch=master)](https://travis-ci.com/jedib0t/go-pretty)
4+
[![Build Status](https://github.com/jedib0t/go-pretty/workflows/CI/badge.svg?branch=master)](https://github.com/jedib0t/go-pretty/actions?query=workflow%3ACI+event%3Apush+branch%3Amaster)
55
[![Coverage Status](https://coveralls.io/repos/github/jedib0t/go-pretty/badge.svg?branch=master)](https://coveralls.io/github/jedib0t/go-pretty?branch=master)
66
[![Go Report Card](https://goreportcard.com/badge/github.com/jedib0t/go-pretty)](https://goreportcard.com/report/github.com/jedib0t/go-pretty)
77

0 commit comments

Comments
 (0)