This repository has been archived by the owner on Oct 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Coverage to the project (Buildpacks and Invokers) (#203)
- Loading branch information
Rodolfo Sanchez
authored
Jun 21, 2023
1 parent
eb90073
commit 6a479dd
Showing
12 changed files
with
135 additions
and
15 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,34 @@ | ||
# Copyright 2021-2022 VMware, Inc. | ||
# SPDX-License-Identifier: BSD-2-Clause | ||
|
||
name: CodeCov | ||
on: | ||
workflow_dispatch: {} | ||
push: | ||
paths: | ||
- 'buildpacks/**' | ||
- 'invokers/**' | ||
schedule: | ||
- cron: '0 6 * * 1' | ||
|
||
jobs: | ||
code-cov: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: '1.19' | ||
- run: go version | ||
- name: Run Buildpack Tests | ||
run: make buildpacks.tests | ||
- name: Run Python Invoker Tests | ||
id: python-invoker-tests | ||
run: make invokers.python.tests | ||
- name: Run Java Invoker Tests | ||
run: make invokers.java.tests | ||
- name: Upload coverage reports to Codecov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN}} |
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
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
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
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,39 @@ | ||
# Copyright 2021-2022 VMware, Inc. | ||
# SPDX-License-Identifier: BSD-2-Clause | ||
codecov: | ||
disable_default_path_fixes: true | ||
coverage: | ||
status: | ||
project: | ||
default: off | ||
buildpacks: | ||
target: auto | ||
flags: | ||
- buildpacks | ||
invokers: | ||
target: auto | ||
flags: | ||
- invokers | ||
comment: | ||
layout: "reach, diff, flags, files" | ||
behavior: default | ||
require_changes: false | ||
require_base: yes | ||
require_head: yes | ||
branches: null | ||
|
||
flags: | ||
buildpacks: | ||
paths: | ||
- buildpacks/common | ||
- buildpacks/java | ||
- buildpacks/python | ||
carryforward: true | ||
invokers: | ||
paths: | ||
- invokers/java | ||
- invokers/python | ||
carryforward: true | ||
tests: | ||
paths: | ||
- tests/ |
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
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