Skip to content

Commit b004592

Browse files
committed
Migrate to GitHub actions for CI testing
Travis CI no longer seems to be working: https://app.travis-ci.com/github/mattn/go-colorable Add a GitHub action instead, based on the one from github.com/mattn/go-isatty
1 parent 6a118b2 commit b004592

File tree

3 files changed

+42
-16
lines changed

3 files changed

+42
-16
lines changed

.github/workflows/test.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: test
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches:
8+
- master
9+
10+
jobs:
11+
test:
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
os:
17+
- ubuntu-latest
18+
- macos-latest
19+
- windows-latest
20+
go:
21+
- '1.17'
22+
- '1.16'
23+
- '1.15'
24+
- '1.14'
25+
- '1.13'
26+
steps:
27+
- uses: actions/setup-go@v2
28+
with:
29+
go-versions: ${{ matrix.go }}
30+
- uses: actions/checkout@v2
31+
- name: test
32+
shell: bash
33+
run: |
34+
./go.test.sh
35+
- name: upload coverage report
36+
uses: codecov/codecov-action@v2
37+
with:
38+
env_vars: OS,GO
39+
env:
40+
OS: ${{ matrix.os }}
41+
GO: ${{ matrix.go }}

.travis.yml

-15
This file was deleted.

README.md

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

3-
[![Build Status](https://travis-ci.org/mattn/go-colorable.svg?branch=master)](https://travis-ci.org/mattn/go-colorable)
3+
[![Build Status](https://github.com/mattn/go-colorable/workflows/test/badge.svg)](https://github.com/mattn/go-colorable/actions?query=workflow%3Atest)
44
[![Codecov](https://codecov.io/gh/mattn/go-colorable/branch/master/graph/badge.svg)](https://codecov.io/gh/mattn/go-colorable)
55
[![GoDoc](https://godoc.org/github.com/mattn/go-colorable?status.svg)](http://godoc.org/github.com/mattn/go-colorable)
66
[![Go Report Card](https://goreportcard.com/badge/mattn/go-colorable)](https://goreportcard.com/report/mattn/go-colorable)

0 commit comments

Comments
 (0)