mirror of
https://github.com/swarm-game/swarm.git
synced 2024-09-11 14:46:33 +03:00
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:
parent
326305653d
commit
fd88a4b31a
2
.github/workflows/check_todos.yml
vendored
2
.github/workflows/check_todos.yml
vendored
@ -17,4 +17,4 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- run: |
|
||||
scripts/enforce-todo-issues.sh
|
||||
scripts/validate/issues-for-todos.sh
|
||||
|
2
.github/workflows/scenario-schema.yml
vendored
2
.github/workflows/scenario-schema.yml
vendored
@ -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
|
||||
|
2
.github/workflows/yaml-normalization.yml
vendored
2
.github/workflows/yaml-normalization.yml
vendored
@ -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
|
||||
|
@ -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
|
||||
|
@ -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:
|
@ -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
|
||||
|
@ -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:
|
||||
#
|
@ -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
|
@ -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
|
@ -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
|
@ -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:]]\+$//'
|
||||
|
@ -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
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user