feat: Add code coverage artifacts for che operator
Signed-off-by: Flavius Lacatusu <flacatus@redhat.com>pull/626/head
parent
5ae85f9ac7
commit
c5d00a4d0a
|
|
@ -0,0 +1,29 @@
|
||||||
|
#
|
||||||
|
# Copyright (c) 2012-2021 Red Hat, Inc.
|
||||||
|
# This program and the accompanying materials are made
|
||||||
|
# available under the terms of the Eclipse Public License 2.0
|
||||||
|
# which is available at https://www.eclipse.org/legal/epl-2.0/
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: EPL-2.0
|
||||||
|
#
|
||||||
|
# Contributors:
|
||||||
|
# Red Hat, Inc. - initial API and implementation
|
||||||
|
|
||||||
|
name: che-operator
|
||||||
|
on: [push]
|
||||||
|
jobs:
|
||||||
|
build-and-deploy:
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
name: Code Coverage Report
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2.3.1
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
- name: Submit code coverage results
|
||||||
|
env:
|
||||||
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
run: |
|
||||||
|
echo "" > coverage.txt
|
||||||
|
export MOCK_API=true && go test -mod=vendor -v ./... -coverprofile coverage.txt
|
||||||
|
bash <(curl -s https://codecov.io/bash)
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
# Che/CodeReady Workspaces Operator
|
# Che/CodeReady Workspaces Operator
|
||||||
|
|
||||||
|
[](https://github.com/eclipse/che-operator)
|
||||||
|
|
||||||
Che/CodeReady workspaces operator uses [Operator SDK](https://github.com/operator-framework/operator-sdk) and [Go Kube client](https://github.com/kubernetes/client-go) to deploy, update and manage K8S/OpenShift resources that constitute a single or multi-user Eclipse Che/CodeReady Workspaces cluster.
|
Che/CodeReady workspaces operator uses [Operator SDK](https://github.com/operator-framework/operator-sdk) and [Go Kube client](https://github.com/kubernetes/client-go) to deploy, update and manage K8S/OpenShift resources that constitute a single or multi-user Eclipse Che/CodeReady Workspaces cluster.
|
||||||
|
|
||||||
The operator watches for a Custom Resource of Kind `CheCluster`, and operator controller executes its business logic when a new Che object is created, namely:
|
The operator watches for a Custom Resource of Kind `CheCluster`, and operator controller executes its business logic when a new Che object is created, namely:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue