Skip to content

Commit

Permalink
Move helper scripts into subdirs
Browse files Browse the repository at this point in the history
  • Loading branch information
rcowsill committed May 30, 2024
1 parent 5d4736f commit b76d854
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .github/scripts/shellcheck.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash

shellcheck .github/scripts/*.sh
shopt -s globstar
shellcheck .github/scripts/**/*.sh
2 changes: 1 addition & 1 deletion .github/scripts/validate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ RUN_OPTS=(
IMAGE_DIGEST="sha256:f4ceed83064a348fd23529039ce8634f8ba49ce5df26a5f10f94adf384cbebce"
VNU_IMAGE="ghcr.io/validator/validator@$IMAGE_DIGEST"

docker run "${RUN_OPTS[@]}" "$VNU_IMAGE" bash - <.github/scripts/vnu.sh
docker run "${RUN_OPTS[@]}" "$VNU_IMAGE" bash - <.github/scripts/validate/vnu.sh
File renamed without changes.
2 changes: 1 addition & 1 deletion .github/scripts/wasm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ RUN_OPTS=(
IMAGE_DIGEST="sha256:f9479effb0d095fea1c8501b57c18d13876a5e3bfebcb71f0da68a0fe49c935f"
EMSDK_IMAGE="emscripten/emsdk@$IMAGE_DIGEST"

docker run "${RUN_OPTS[@]}" "$EMSDK_IMAGE" bash - <.github/scripts/cmake.sh
docker run "${RUN_OPTS[@]}" "$EMSDK_IMAGE" bash - <.github/scripts/wasm/cmake.sh
File renamed without changes.
4 changes: 2 additions & 2 deletions .github/workflows/shellcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ on:
pull_request:
paths:
- ".github/workflows/shellcheck.yml"
- ".github/scripts/*.sh"
- ".github/scripts/**.sh"
push:
paths:
- ".github/workflows/shellcheck.yml"
- ".github/scripts/*.sh"
- ".github/scripts/**.sh"

permissions:
contents: read
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ on:
paths:
- ".github/workflows/validate.yml"
- ".github/scripts/validate.sh"
- ".github/scripts/vnu.sh"
- ".github/scripts/validate/*.sh"
- ".vnurc"
- "_site/**"
push:
paths:
- ".github/workflows/validate.yml"
- ".github/scripts/validate.sh"
- ".github/scripts/vnu.sh"
- ".github/scripts/validate/*.sh"
- ".vnurc"
- "_site/**"

Expand Down

0 comments on commit b76d854

Please sign in to comment.