Skip to content

Commit

Permalink
hack updates
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbourgon committed Sep 17, 2023
1 parent 039ae3a commit fd19c3a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .revive.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[rule.unused-parameter]
Disabled = true
disabled = true
6 changes: 3 additions & 3 deletions hack/run-action-tests
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

set -o pipefail

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

test_workflow | run_commands | while read COMMAND
test_workflow | test_commands | while read COMMAND
do
echo ${COMMAND}
TEMPFILE=$(mktemp)
Expand Down
15 changes: 15 additions & 0 deletions hack/update-action-tests
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env bash

set -o pipefail

function test_workflow { cat .github/workflows/test.yaml ; }
function install_commands { yq '.jobs.test.steps[] | select(.name == "Install tools") | .run' ; }

test_workflow | install_commands | while read COMMAND
do
echo ${COMMAND}
TEMPFILE=$(mktemp)
eval ${COMMAND} >${TEMPFILE} \
&& { rm ${TEMPFILE}; } \
|| { cat ${TEMPFILE}; rm ${TEMPFILE}; exit 1; }
done

0 comments on commit fd19c3a

Please sign in to comment.