Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix gcov2lcov download url (#11) #12

Merged
merged 2 commits into from Nov 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/test.yml
Expand Up @@ -17,7 +17,15 @@ jobs:
- name: Prepare
run: git init
working-directory: testdata
- name: Run gcov2lcov-action
- name: Run gcov2lcov-action with specific release
uses: ./
with:
working-directory: testdata
version: v1.0.4
- name: Diff
run: diff -y coverage_expected.lcov coverage.lcov
working-directory: testdata
- name: Run gcov2lcov-action with latest release
uses: ./
with:
working-directory: testdata
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,9 @@
# Changelog for gcov2lcov-action

## 1.0.8 [2020-11-05]

- fix: use correct download link when specific version of gcov2lcov is set (#11)

## 1.0.5 [2020-10-15]

- without docker runtime
Expand Down
5 changes: 3 additions & 2 deletions action.yml
Expand Up @@ -23,11 +23,12 @@ runs:
using: composite
steps:
- shell: bash
run: 'set -x && curl -sLf "${RELEASE}/${NAME}.tar.gz" | tar zxf - --strip 1'
run: 'set -x && curl -sLf "$([ ${{inputs.version}} == latest ] && echo $LATEST_RELEASE || echo $RELEASE)/${NAME}.tar.gz" | tar zxf - --strip 1'
working-directory: /tmp
env:
NAME: "gcov2lcov-linux-amd64"
RELEASE: "https://github.com/jandelgado/gcov2lcov/releases/${{inputs.version}}/download"
RELEASE: "https://github.com/jandelgado/gcov2lcov/releases/download/${{inputs.version}}"
LATEST_RELEASE: "https://github.com/jandelgado/gcov2lcov/releases/latest/download"
- shell: bash
run: set -x && /tmp/gcov2lcov-linux-amd64 -infile "${{ inputs.infile }}" -outfile "${{ inputs.outfile }}"
working-directory: ${{ inputs.working-directory }}