Skip to content

Merge pull request #28 from kyverno/de-update #144

Merge pull request #28 from kyverno/de-update

Merge pull request #28 from kyverno/de-update #144

Workflow file for this run

name: CI
on:
push:
branches:
- main
- development
tags:
- v*
paths-ignore:
- README.md
pull_request:
branches:
- main
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.20
uses: actions/setup-go@v4
with:
go-version: 1.20.4
- name: Checkout code
uses: actions/checkout@v3
- name: Get dependencies
run: go get -v -t -d ./...
- name: Calc coverage
run: make coverage
- name: Download gcov2lcov
shell: bash
run: 'set -x && curl -sLf "https://github.com/jandelgado/gcov2lcov/releases/latest/download/gcov2lcov-linux-amd64.tar.gz" | tar zxf - --strip 1'
working-directory: /tmp
- name: Convert coverage to lcov
shell: bash
run: '/tmp/gcov2lcov-linux-amd64 -infile "coverage.out" -outfile "coverage.lcov"'
env:
GOROOT: /opt/hostedtoolcache/go/1.20.4/x64
- name: Coveralls
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: coverage.lcov