organize scripts with subfolders (#1800)

There is getting to be a lot of files in the `scripts/` dir.  Add a layer of directories for organization.
This commit is contained in:
Karl Ostmo 2024-04-10 19:20:45 -07:00 committed by GitHub
parent 326305653d
commit fd88a4b31a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
13 changed files with 13 additions and 13 deletions

View File

@ -17,4 +17,4 @@ jobs:
steps:
- uses: actions/checkout@v2
- run: |
scripts/enforce-todo-issues.sh
scripts/validate/issues-for-todos.sh

View File

@ -25,4 +25,4 @@ jobs:
python -m pip install --upgrade pip
pip install check-jsonschema
- run: |
scripts/validate-json-schemas.sh
scripts/validate/json-schemas.sh

View File

@ -23,5 +23,5 @@ jobs:
- uses: actions/checkout@v3
- name: Normalize
run: |
scripts/normalize-all-yaml.sh
scripts/normalize/yaml.sh
git diff --name-only --exit-code

View File

@ -67,7 +67,7 @@ You can also check the files from the command line:
# install latest check-jsonschema executable version
pip install check-jsonschema
# try it on provided scenarios
scripts/validate-json-schemas.sh
scripts/validate/json-schemas.sh
```
### YAML schema

View File

@ -3,7 +3,7 @@
# This script lives 1 level deep in the directory structure.
# Ensure its commands get run at the toplevel.
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd $SCRIPT_DIR/..
cd $SCRIPT_DIR/../..
# First, install hiedb:

View File

@ -1,7 +1,7 @@
#!/bin/bash -ex
SCRIPT_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
cd $SCRIPT_DIR/..
cd $SCRIPT_DIR/../..
cabal haddock

View File

@ -1,7 +1,7 @@
#!/bin/bash -ex
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd $SCRIPT_DIR/..
cd $SCRIPT_DIR/../..
# First, install cabal-plan:
#

View File

@ -1,6 +1,6 @@
#!/bin/bash -e
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd $SCRIPT_DIR/..
cd $SCRIPT_DIR/../..
stack build --fast && stack exec -- swarm generate cheatsheet --scenario

View File

@ -1,7 +1,7 @@
#!/bin/bash -ex
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd $SCRIPT_DIR/..
cd $SCRIPT_DIR/../..
CABAL_FILE=swarm.cabal
cabal-gild --input $CABAL_FILE --output $CABAL_FILE --mode format

View File

@ -1,6 +1,6 @@
#!/bin/bash -e
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd $SCRIPT_DIR/..
cd $SCRIPT_DIR/../..
fourmolu --mode=inplace src app test scripts

View File

@ -1,7 +1,7 @@
#!/bin/bash -e
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd $SCRIPT_DIR/..
cd $SCRIPT_DIR/../..
find data -type f -name '*.yaml' -print0 | xargs -0 --max-args 1 sed -i -e 's/[[:blank:]]\+$//'

View File

@ -1,7 +1,7 @@
#!/bin/bash -e
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd $SCRIPT_DIR/..
cd $SCRIPT_DIR/../..
if grep --line-number --include \*.hs -riP '(TODO|FIXME|XXX)\b' src app 2>&1 | grep -vP '#\d+'; then

View File

@ -1,7 +1,7 @@
#!/bin/bash -e
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd $SCRIPT_DIR/..
cd $SCRIPT_DIR/../..
find data/scenarios -name "*.yaml" -type f -print0 | xargs -0 check-jsonschema --base-uri $(git rev-parse --show-toplevel)/data/schema/scenario.json --schemafile data/schema/scenario.json