Skip to content

Commit

Permalink
remove suffix from wildcard for coverage file
Browse files Browse the repository at this point in the history
  • Loading branch information
austinvalle committed Apr 18, 2024
1 parent 58b19e9 commit 9c1caa1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/ci-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,14 @@ jobs:
- run: go test -coverprofile=coverage.out ./...
env:
TF_ACC: "1"
# Remove .* suffix, if it exists, from the terraform version
- id: tf_version
run:
version="${{ matrix.terraform }}"
wildcard=".*"
echo "version=$(echo ${version%$wildcard})" >> "$GITHUB_OUTPUT"
- run: go tool cover -html=coverage.out -o coverage.html
- uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
name: go-${{ matrix.go-version }}-terraform-${{ matrix.terraform }}-coverage
name: go-${{ matrix.go-version }}-terraform-${{ steps.tf_version.outputs.version }}-coverage
path: coverage.html

0 comments on commit 9c1caa1

Please sign in to comment.