-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'INTO-CPS-Association:feature/distributed-demo' into fea…
…ture/distributed-demo
- Loading branch information
Showing
40 changed files
with
7,821 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,21 @@ | ||
#!/usr/bin/env sh | ||
|
||
TOP_DIR="$(pwd)" | ||
export TOP_DIR | ||
|
||
if git diff --cached --name-only | grep "^client/" >/dev/null; then | ||
cd client || exit | ||
yarn install | ||
yarn format && yarn syntax | ||
else | ||
printf "No changes in the client directory. Skipping pre-commit hook." | ||
printf "No changes in the client directory. Skipping pre-commit hook.\n\n" | ||
fi | ||
|
||
cd "$TOP_DIR" || exit | ||
if git diff --cached --name-only | grep "^servers/execution/runner/" >/dev/null; then | ||
cd "servers/execution/runner" || exit | ||
yarn install | ||
yarn format && yarn syntax | ||
else | ||
printf "No changes in the servers/execution/runner directory. Skipping pre-commit hook.\n\n" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,22 @@ | ||
#!/usr/bin/env sh | ||
|
||
BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD) | ||
TOP_DIR="$(pwd)" | ||
export TOP_DIR | ||
|
||
if git diff --name-only origin/"$BRANCH_NAME"...HEAD | grep "^client/" >/dev/null; then | ||
cd client || exit | ||
yarn install | ||
yarn jest . --coverage=false | ||
else | ||
echo "No changes in the client directory. Skipping pre-push hook." | ||
printf "No changes in the client directory. Skipping pre-push hook.\n\n" | ||
fi | ||
|
||
cd "$TOP_DIR" || exit | ||
if git diff --name-only origin/"$BRANCH_NAME"...HEAD | grep "^servers/execution/runner/" >/dev/null; then | ||
cd "servers/execution/runner" || exit | ||
yarn install | ||
yarn test:nocov | ||
else | ||
printf "No changes in the servers/execution/runner/ directory. Skipping pre-push hook.\n\n" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Digital twin runner | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'servers/execution/**' | ||
pull_request: | ||
paths: | ||
- 'servers/execution/**' | ||
workflow_dispatch: | ||
paths: | ||
- 'servers/execution/**' | ||
|
||
jobs: | ||
test-runner: | ||
name: Test digital twin runner | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: "yarn" | ||
cache-dependency-path: "**/yarn.lock" | ||
|
||
- name: Run linting checks on runner | ||
run: | | ||
cd servers/execution/runner | ||
yarn install | ||
yarn syntax | ||
- name: Build the runner | ||
if: success() || failure() | ||
run: | | ||
cd servers/execution/runner | ||
yarn install | ||
yarn build | ||
- name: Run tests | ||
if: success() || failure() | ||
run: | | ||
cd servers/execution/runner | ||
yarn install | ||
yarn test | ||
- name: Upload test coverage to Codecov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
files: servers/execution/runner/coverage/clover.xml | ||
flags: dt-runner |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
playwright/.auth/ | ||
playwright/.auth/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.