Skip to content

Commit

Permalink
Set CI flow to Github actions instead of travis-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Cem Küçük committed Dec 30, 2020
1 parent 75c3495 commit 4dc065f
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 28 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
ci-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ macos-latest, windows-latest, ubuntu-latest ]
go: [ 1.12, 1.13, 1.14 ]
steps:
- name: Checkout the code
uses: actions/checkout@v2
- name: Set up golang with version ${{ matrix.go }}
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Run tests
run: go test -v -coverprofile=covprofile ./...
- name: Send coverage
uses: shogo82148/[email protected]
with:
path-to-profile: covprofile
flag-name: go-${{ matrix.go }}-OS-${{ matrix.os }}
parallel: true
finish:
needs: ci-test
runs-on: ubuntu-latest
steps:
- uses: shogo82148/[email protected]
with:
parallel-finished: true
27 changes: 0 additions & 27 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,6 +1,6 @@
# OPSGENIE EDGE CONNECTOR

[![Build Status](https://travis-ci.com/opsgenie/oec.svg?branch=master)](https://travis-ci.com/opsgenie/oec)
[![Build Status](https://github.com/opsgenie/oec/workflows/test/badge.svg?branch=master)](https://github.com/opsgenie/oec/actions?query=workflow%3Atest)
[![Coverage Status](https://coveralls.io/repos/github/opsgenie/oec/badge.svg?branch=master)](https://coveralls.io/github/opsgenie/oec?branch=master)
[![Go Report Card](https://goreportcard.com/badge/github.com/opsgenie/oec)](https://goreportcard.com/report/github.com/opsgenie/oec)
[![GoDoc](https://godoc.org/github.com/opsgenie/oec?status.svg)](https://godoc.org/github.com/opsgenie/oec)
Expand Down

0 comments on commit 4dc065f

Please sign in to comment.