Skip to content

Update gcov2lcov to 1.0.3 #130

Update gcov2lcov to 1.0.3

Update gcov2lcov to 1.0.3 #130

Workflow file for this run

on: [push, pull_request]
name: test
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Install Go
if: success()
uses: actions/setup-go@v1
with:
go-version: 1.13.x
- name: Checkout code
uses: actions/checkout@v1
- name: Integration test
run: |
# perform an integration test with original gcov2lcov integration
# test data, which is available in the testdata/ directory.
docker build -t gcov2lcov-action .
# create bare-bones go project to run the action on
mkdir -p gcov2lcov/.git
echo -e '[remote "origin"]\nurl = git@github.com:jandelgado/gcov2lcov\n' > gcov2lcov/.git/config
echo -e "package main\n" > gcov2lcov/main.go
echo -e "module github.com/jandelgado/gcov2lcov\ngo 1.12\n" > gcov2lcov/go.mod
cp testdata/coverage.out gcov2lcov/
docker run -e "GITHUB_WORKSPACE=/test" \
-e "INPUT_INFILE=coverage.out" \
-e "INPUT_OUTFILE=coverage.lcov" \
-i --rm -v "$PWD/gcov2lcov:/test" gcov2lcov-action
diff testdata/coverage_expected.lcov gcov2lcov/coverage.lcov