Skip to content

Commit

Permalink
Fix example submodule not fetched
Browse files Browse the repository at this point in the history
  • Loading branch information
DrSensor committed Aug 22, 2019
1 parent ba9b668 commit a0d9f86
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ set -e
mkdir --parents ${HOME}/.bin/
export PATH="$HOME/.cargo/bin:${HOME}/.bin:$PATH"

[ -z $WORKDIR ] || cd $WORKDIR
for cmd in "$@"; do
echo "Running '$cmd'..."
if sh -c "$cmd"; then
Expand Down
4 changes: 1 addition & 3 deletions .github/main.workflow
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,13 @@ action "Smoke tests" {
runs = "./.github/entrypoint.sh"
args = [
"git submodule update --init --recursive",
"cd examples/xstate/nodejs",
"npm install",
"scrap generate src/${filestem}.scl --format xstate --as typescript > src/fsm/${filestem}.ts",
"scrap generate src/${filestem}.scl --format xstate --as javascript >> src/fsm/${filestem}.ts",
"npx tsc --build",
"node dist/index.js",
]
env = { filestem = "light" }
secrets = ["GITHUB_TOKEN"]
env = { WORKDIR = "examples/xstate/nodejs", filestem = "light" }
}

action "Perf cargo" {
Expand Down
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "examples/xstate/nodejs"]
path = examples/xstate/nodejs
url = git@github.com:DrSensor/nodejs-scdlang_xstate.git
url = https://github.com/DrSensor/nodejs-scdlang_xstate.git

0 comments on commit a0d9f86

Please sign in to comment.