Skip to content

Commit

Permalink
setup github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dropwhile committed Sep 22, 2019
1 parent 4475098 commit 92e3d1f
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 7 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: unit-tests
on:
push:
pull_request:
branches:
- master

jobs:
build:
name: Build
strategy:
matrix:
goVer: ["1.11.x", "1.12.x", "1.13.x"]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Setup Go ${{ matrix.goVer }}
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.goVer }}
id: go

- name: Src Checkout
uses: actions/checkout@v1
with:
fetch-depth: 1

- name: Tests
env:
GO111MODULE: "on"
GOPROXY: "https://proxy.golang.org"
run: go test -v -cpu=1,2 ./...
6 changes: 0 additions & 6 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 @@
mlog
====

[![Build Status](https://travis-ci.org/cactus/mlog.png?branch=master)](https://travis-ci.org/cactus/mlog)
[![Build Status](https://github.com/cactus/mlog/workflows/unit-tests/badge.svg)](https://github.com/cactus/mlog/actions)
[![GoDoc](https://godoc.org/github.com/cactus/mlog?status.png)](https://godoc.org/github.com/cactus/mlog)
[![Go Report Card](https://goreportcard.com/badge/cactus/mlog)](https://goreportcard.com/report/cactus/mlog)
[![License](https://img.shields.io/github/license/cactus/mlog.svg)](https://github.com/cactus/mlog/blob/master/LICENSE.md)
Expand Down

0 comments on commit 92e3d1f

Please sign in to comment.