Skip to content

Commit 99e5322

Browse files
committed
ci: fix codecov job depedency
Signed-off-by: Massimiliano Giovagnoli <[email protected]>
1 parent 436aab9 commit 99e5322

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

.github/actions/exists/action.yaml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Checks if an input is defined
2+
3+
description: Checks if an input is defined and outputs 'true' or 'false'.
4+
5+
inputs:
6+
value:
7+
description: value to test
8+
required: true
9+
10+
outputs:
11+
result:
12+
description: outputs 'true' or 'false' if input value is defined or not
13+
value: ${{ steps.check.outputs.result }}
14+
15+
runs:
16+
using: composite
17+
steps:
18+
- shell: bash
19+
id: check
20+
run: |
21+
echo "result=${{ inputs.value != '' }}" >> $GITHUB_OUTPUT
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Setup caches
2+
3+
description: Setup caches for go modules and build cache.
4+
5+
inputs:
6+
build-cache-key:
7+
description: build cache prefix
8+
9+
runs:
10+
using: composite
11+
steps:
12+
- uses: actions/cache@4723a57e26efda3a62cbde1812113b730952852d # v3.2.2
13+
with:
14+
path: ~/go/pkg/mod
15+
key: ${{ runner.os }}-go-pkg-mod-${{ hashFiles('**/go.sum') }}-${{ hashFiles('Makefile') }}
16+
- uses: actions/cache@4723a57e26efda3a62cbde1812113b730952852d # v3.2.2
17+
if: ${{ inputs.build-cache-key }}
18+
with:
19+
path: ~/.cache/go-build
20+
key: ${{ runner.os }}-build-cache-${{ inputs.build-cache-key }}-${{ hashFiles('**/go.sum') }}-${{ hashFiles('Makefile') }}

0 commit comments

Comments
 (0)