Skip to content

Commit

Permalink
fix gcov2lcov download url (#12)
Browse files Browse the repository at this point in the history
fixes #11
  • Loading branch information
jandelgado committed Nov 22, 2020
1 parent 91f9b36 commit 2477d9e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
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 }}

0 comments on commit 2477d9e

Please sign in to comment.