forked from opsgenie/oec
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set CI flow to Github actions instead of travis-ci
- Loading branch information
Cem Küçük
committed
Dec 30, 2020
1 parent
75c3495
commit 4dc065f
Showing
3 changed files
with
36 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters