Run opa test command with GitHub Actions
You can use the fixed version from: Releases
package main | |
import ( | |
"errors" | |
"github.com/jmoiron/sqlx" | |
_ "github.com/mattn/go-sqlite3" | |
) | |
func main() { |
Output afx.gif | |
# Set Theme "Builtin Solarized Dark" | |
Set FontSize 55 | |
Set Width 2400 | |
Set Height 800 | |
Type "afx install" | |
Enter |
#!/bin/bash | |
out=/tmp/cover.out | |
html=/tmp/cover.html | |
go test -cover ./... -coverprofile=$out | |
go tool cover -html=$out -o $html | |
open $html | |
sleep 1 | |
rm $out $html |
#!/bin/bash | |
# is_login_shell returns true if current shell is first shell | |
is_login_shell() { | |
[[ $SHLVL == 1 ]] | |
} | |
# is_git_repo returns true if cwd is in git repository | |
is_git_repo() { | |
git rev-parse --is-inside-work-tree &>/dev/null |
#!/bin/bash | |
if ! type sd &>/dev/null; then | |
echo "sd: command not found" >&2 | |
exit 1 | |
fi | |
case "${#}" in | |
0) | |
echo "too few arguments" >&2 |
#!/bin/bash | |
if ! type jq &>/dev/null; then | |
echo "jq: not found" >&2 | |
exit 1 | |
fi | |
if ! type gcloud &>/dev/null; then | |
echo "gcloud: not found" >&2 | |
exit 1 |
for policy in $@ | |
do | |
if [[ $policy == *_test.rego ]]; then | |
continue | |
fi | |
if [[ $policy == *.rego ]]; then | |
file=${policy##*/} | |
mkdir -p .policy/rego/prc/"${file%*.rego}" | |
git mv $policy .policy/rego/prc/"${file%*.rego}"/src.rego |
package main | |
import ( | |
"io" | |
"os" | |
"github.com/k0kubun/pp" | |
"github.com/moby/buildkit/frontend/dockerfile/instructions" | |
"github.com/moby/buildkit/frontend/dockerfile/parser" | |
) |
Run opa test command with GitHub Actions
You can use the fixed version from: Releases
pien |