Skip to content

Commit

Permalink
Merge pull request olekukonko#183 from johejo/migrate_to_github_actions
Browse files Browse the repository at this point in the history
Migrate CI from travis to GitHub Actions
  • Loading branch information
mattn authored Mar 3, 2021
2 parents c7d2a8a + 9135b5e commit 3ae52b6
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 25 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: ci
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
go: ["1.15.x", "1.16.x"]
runs-on: ${{ matrix.os }}
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: "go vet"
run: |
go vet ./...
- name: "go test"
run: |
go test -race -v ./...
22 changes: 0 additions & 22 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ASCII Table Writer
=========

[![Build Status](https://travis-ci.org/olekukonko/tablewriter.png?branch=master)](https://travis-ci.org/olekukonko/tablewriter)
[![ci](https://github.com/olekukonko/tablewriter/workflows/ci/badge.svg?branch=master)](https://github.com/olekukonko/tablewriter/actions?query=workflow%3Aci)
[![Total views](https://img.shields.io/sourcegraph/rrc/github.com/olekukonko/tablewriter.svg)](https://sourcegraph.com/github.com/olekukonko/tablewriter)
[![Godoc](https://godoc.org/github.com/olekukonko/tablewriter?status.svg)](https://godoc.org/github.com/olekukonko/tablewriter)

Expand Down
4 changes: 2 additions & 2 deletions table_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func ExampleShort() {
// +------+-----------------------+--------+
}

func ExampleLong() {
func ExampleTable() {
data := [][]string{
{"Learn East has computers with adapted keyboards with enlarged print etc", " Some Data ", " Another Data"},
{"Instead of lining up the letters all ", "the way across, he splits the keyboard in two", "Like most ergonomic keyboards", "See Data"},
Expand All @@ -81,7 +81,7 @@ func ExampleLong() {
// *================================*================================*===============================*==========*
}

func ExampleCSV() {
func ExampleNewCSV() {
table, _ := NewCSV(os.Stdout, "testdata/test.csv", true)
table.SetCenterSeparator("*")
table.SetRowSeparator("=")
Expand Down

0 comments on commit 3ae52b6

Please sign in to comment.