-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: opt-in GitHub Actions and Codecov
- Loading branch information
Showing
3 changed files
with
36 additions
and
25 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: Main | ||
on: [push, pull_request] | ||
jobs: | ||
test: | ||
name: Test all | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
go: | ||
- "1.5.x" | ||
- "1.6.x" | ||
- "1.7.x" | ||
- "1.8.x" | ||
- "1.9.x" | ||
- "1.10.x" | ||
- "1.11.x" | ||
- "1.12.x" | ||
steps: | ||
- name: Set up Go | ||
uses: actions/[email protected] | ||
with: | ||
go-version: ${{matrix.go}} | ||
env: | ||
GOPATH: /home/runner # Fix for actions/[email protected] | ||
- name: Check out code | ||
uses: actions/[email protected] | ||
- name: Get modules | ||
run: go get -v -t -d ./... | ||
- name: Test | ||
run: go test -v --coverprofile=cover.out ./... | ||
- name: Upload coverage profile | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{secrets.CODECOV_TOKEN}} | ||
file: cover.out |
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