Skip to content

Commit fd19c3a

Browse files
committed
hack updates
1 parent 039ae3a commit fd19c3a

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed

.revive.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[rule.unused-parameter]
2-
Disabled = true
2+
disabled = true

hack/run-action-tests

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
set -o pipefail
44

5-
function test_workflow { cat .github/workflows/test.yaml ; }
6-
function run_commands { yq '.jobs.test.steps[] | select(.name == "Run *") | .run' ; }
5+
function test_workflow { cat .github/workflows/test.yaml ; }
6+
function test_commands { yq '.jobs.test.steps[] | select(.name == "Run *") | .run' ; }
77

8-
test_workflow | run_commands | while read COMMAND
8+
test_workflow | test_commands | while read COMMAND
99
do
1010
echo ${COMMAND}
1111
TEMPFILE=$(mktemp)

hack/update-action-tests

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env bash
2+
3+
set -o pipefail
4+
5+
function test_workflow { cat .github/workflows/test.yaml ; }
6+
function install_commands { yq '.jobs.test.steps[] | select(.name == "Install tools") | .run' ; }
7+
8+
test_workflow | install_commands | while read COMMAND
9+
do
10+
echo ${COMMAND}
11+
TEMPFILE=$(mktemp)
12+
eval ${COMMAND} >${TEMPFILE} \
13+
&& { rm ${TEMPFILE}; } \
14+
|| { cat ${TEMPFILE}; rm ${TEMPFILE}; exit 1; }
15+
done

0 commit comments

Comments
 (0)