Skip to content

Commit

Permalink
Migrate to GitHub actions for CI testing
Browse files Browse the repository at this point in the history
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
  • Loading branch information
tklauser committed Sep 29, 2021
1 parent 6a118b2 commit 5ced99c
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 15 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/test.yml
@@ -0,0 +1,41 @@
name: test
on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
go:
- '1.17'
- '1.16'
- '1.15'
- '1.14'
- '1.13'
steps:
- uses: actions/setup-go@v2
with:
go-versions: ${{ matrix.go }}
- uses: actions/checkout@v2
- name: test
shell: bash
run: |
./go.test.sh
- name: upload coverage report
uses: codecov/codecov-action@v2
with:
env_vars: OS,GO
env:
OS: ${{ matrix.os }}
GO: ${{ matrix.go }}
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

0 comments on commit 5ced99c

Please sign in to comment.