summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/codecoverage.yml15
-rw-r--r--README.md2
-rw-r--r--changelogs/fragments/ci_codecov.yml3
-rw-r--r--codecov.yml10
-rw-r--r--galaxy.yml2
5 files changed, 30 insertions, 2 deletions
diff --git a/.github/workflows/codecoverage.yml b/.github/workflows/codecoverage.yml
new file mode 100644
index 0000000..b425edc
--- /dev/null
+++ b/.github/workflows/codecoverage.yml
@@ -0,0 +1,15 @@
+---
+name: Code Coverage
+
+on: # yamllint disable-line rule:truthy
+ push:
+ pull_request:
+ branches: [ main ]
+
+jobs:
+ codecoverage:
+ uses: ansible-network/github_actions/.github/workflows/coverage_network_devices.yml@main
+ with:
+ collection_pre_install: >-
+ git+https://github.com/ansible-collections/ansible.utils.git
+ git+https://github.com/ansible-collections/ansible.netcommon.git
diff --git a/README.md b/README.md
index 3794790..ef670fb 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
# VyOS Collection
[![CI](https://zuul-ci.org/gated.svg)](https://dashboard.zuul.ansible.com/t/ansible/project/github.com/ansible-collections/vyos.vyos) <!--[![Codecov](https://img.shields.io/codecov/c/github/ansible-collections/vyos)](https://codecov.io/gh/ansible-collections/vyos)-->
-
+[![Codecov](https://codecov.io/gh/ansible-collections/vyos.vyos/branch/main/graph/badge.svg)](https://codecov.io/gh/ansible-collections/vyos.vyos)
The Ansible VyOS collection includes a variety of Ansible content to help automate the management of VyOS network appliances.
This collection has been tested against VyOS 1.1.8 (helium).
diff --git a/changelogs/fragments/ci_codecov.yml b/changelogs/fragments/ci_codecov.yml
new file mode 100644
index 0000000..ea17f51
--- /dev/null
+++ b/changelogs/fragments/ci_codecov.yml
@@ -0,0 +1,3 @@
+---
+trivial:
+ - added codecov to the CI pipeline
diff --git a/codecov.yml b/codecov.yml
new file mode 100644
index 0000000..816cb44
--- /dev/null
+++ b/codecov.yml
@@ -0,0 +1,10 @@
+---
+codecov:
+ require_ci_to_pass: true
+comment: false
+coverage:
+ status:
+ patch: false
+ project:
+ default:
+ threshold: 0.3%
diff --git a/galaxy.yml b/galaxy.yml
index 4c65ff1..eef5e1f 100644
--- a/galaxy.yml
+++ b/galaxy.yml
@@ -11,4 +11,4 @@ readme: README.md
repository: https://github.com/ansible-collections/vyos.vyos
issues: https://github.com/ansible-collections/vyos.vyos/issues
tags: [vyos, networking]
-version: 4.0.1
+version: 4.0.2-dev