Skip to content

Commit

Permalink
Merge pull request #10 from jbowes/use-github-actions
Browse files Browse the repository at this point in the history
Use github actions instead of travis
  • Loading branch information
jbowes committed Jul 19, 2021
2 parents 59f3560 + cd5e1c8 commit c95f34f
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 33 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/go.yml
@@ -0,0 +1,38 @@
name: Go

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16

- name: Build
run: go build -v ./...

- name: Test
run: go test -v ./... -race -coverprofile=coverage.txt -covermode=atomic

- name: Upload coverage to Codecov
run: bash <(curl -s https://codecov.io/bash)

golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: latest
32 changes: 0 additions & 32 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -9,7 +9,7 @@
<div align="center">
<a href="https://godoc.org/github.com/jbowes/vice"><img src="https://godoc.org/github.com/jbowes/vice?status.svg" alt="GoDoc"></a>
<img alt="Alpha Quality" src="https://img.shields.io/badge/status-ALPHA-orange.svg" >
<a href="https://travis-ci.com/jbowes/vice"><img alt="Build Status" src="https://travis-ci.com/jbowes/vice.svg?branch=master"></a>
<a href="https://github.com/jbowes/vice/actions/workflows/go.yml"><img alt="Build Status" src="https://github.com/jbowes/vice/actions/workflows/go.yml/badge.svg?branch=main"></a>
<a href="https://github.com/jbowes/vice/releases/latest"><img alt="GitHub tag" src="https://img.shields.io/github/tag/jbowes/vice.svg"></a>
<a href="./LICENSE"><img alt="BSD license" src="https://img.shields.io/badge/license-BSD-blue.svg"></a>
<a href="https://codecov.io/gh/jbowes/vice"><img alt="codecov" src="https://img.shields.io/codecov/c/github/jbowes/vice.svg"></a>
Expand Down

0 comments on commit c95f34f

Please sign in to comment.