Skip to content

Commit

Permalink
Merge pull request #78 from opsgenie/ci
Browse files Browse the repository at this point in the history
Set CI flow to Github actions instead of travis-ci
  • Loading branch information
Cem Küçük authored Dec 30, 2020
2 parents 6fbcde6 + 04e3436 commit d0825cd
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 28 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
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
if: ${{ matrix.os == 'macos-latest' && matrix.go == '1.14'}}
uses: shogo82148/[email protected]
with:
path-to-profile: covprofile
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,7 +1,7 @@
# opsgenie-go-sdk-v2
Opsgenie GO SDK v2

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

0 comments on commit d0825cd

Please sign in to comment.