Skip to content

Commit

Permalink
chore: opt-in GitHub Actions and Codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
aofei committed Aug 28, 2019
1 parent e0ea7ac commit abeb905
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 25 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Main
on: [push, pull_request]
jobs:
test:
name: Test all
runs-on: ubuntu-latest
strategy:
matrix:
go:
- "1.5.x"
- "1.6.x"
- "1.7.x"
- "1.8.x"
- "1.9.x"
- "1.10.x"
- "1.11.x"
- "1.12.x"
steps:
- name: Set up Go
uses: actions/[email protected]
with:
go-version: ${{matrix.go}}
env:
GOPATH: /home/runner # Fix for actions/[email protected]
- name: Check out code
uses: actions/[email protected]
- name: Get modules
run: go get -v -t -d ./...
- name: Test
run: go test -v --coverprofile=cover.out ./...
- name: Upload coverage profile
uses: codecov/[email protected]
with:
token: ${{secrets.CODECOV_TOKEN}}
file: cover.out
23 changes: 0 additions & 23 deletions .travis.yml

This file was deleted.

3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# MIMESniffer

[![Build Status](https://travis-ci.org/aofei/mimesniffer.svg?branch=master)](https://travis-ci.org/aofei/mimesniffer)
[![Coverage Status](https://coveralls.io/repos/github/aofei/mimesniffer/badge.svg?branch=master)](https://coveralls.io/github/aofei/mimesniffer?branch=master)
[![codecov](https://codecov.io/gh/aofei/mimesniffer/branch/master/graph/badge.svg)](https://codecov.io/gh/aofei/mimesniffer)
[![Go Report Card](https://goreportcard.com/badge/github.com/aofei/mimesniffer)](https://goreportcard.com/report/github.com/aofei/mimesniffer)
[![GoDoc](https://godoc.org/github.com/aofei/mimesniffer?status.svg)](https://godoc.org/github.com/aofei/mimesniffer)

Expand Down

0 comments on commit abeb905

Please sign in to comment.