Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature - Implemented coverall for tracking codecoverage
- Loading branch information
1 parent
6842f93
commit 3670ccc
Showing
4 changed files
with
32 additions
and
1 deletion.
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: build | ||
name: osxbuild | ||
on: [push, pull_request] | ||
jobs: | ||
validate: | ||
|
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,26 @@ | ||
# Inlcuding the tests with ubuntu to get actual test coverage. The OSX builds skip seccomp tests. | ||
name: test-coverage | ||
on: [push, pull_request] | ||
jobs: | ||
validate: | ||
name: Validate | ||
runs-on: ubuntu-latest | ||
# Pull requests from the same repository won't trigger this checks as they were already triggered by the push | ||
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | ||
steps: | ||
- name: Clone the code | ||
uses: actions/checkout@v2 | ||
- name: Setup Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: '^1.15' | ||
- name: Install libseccomp-dev | ||
run: | | ||
sudo apt update | ||
sudo apt install -y libseccomp-dev | ||
- name: unit test | ||
run: make test-unit | ||
- name: Send the coverage output | ||
uses: shogo82148/actions-goveralls@v1 | ||
with: | ||
path-to-profile: build/coverage.out |
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
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