Skip to content

Commit

Permalink
fix gcov2lcov download url (#11)
Browse files Browse the repository at this point in the history
when a specific gcov2lcov version is set.
  • Loading branch information
jandelgado committed Nov 5, 2020
1 parent 91f9b36 commit 9e4cbc6
Show file tree
Hide file tree
Showing 2 changed files with 12 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
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 9e4cbc6

Please sign in to comment.