Skip to content

Commit

Permalink
feat(simtools): bring simtools (#132)
Browse files Browse the repository at this point in the history
* feat(simtools): bring simtools

* feat(simtools): bring simtools

* Update README.md

* Update package.json

* Update simtools/README.md

Co-authored-by: Elad Ben-Israel <[email protected]>

* Update simtools/README.md

Co-authored-by: Elad Ben-Israel <[email protected]>

* Update README.md

* Update lib.w

* Update README.md

---------

Co-authored-by: Elad Ben-Israel <[email protected]>
  • Loading branch information
Eyal Keren and eladb authored Mar 18, 2024
1 parent 3bd175c commit 67e2358
Show file tree
Hide file tree
Showing 14 changed files with 323 additions and 8 deletions.
63 changes: 63 additions & 0 deletions .github/workflows/canary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,27 @@ jobs:
- name: Test
run: wing test
working-directory: checks
canary-eventbridge:
name: Test eventbridge
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
sparse-checkout: eventbridge
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20.x
registry-url: https://registry.npmjs.org
- name: Install winglang
run: npm i -g winglang
- name: Install dependencies
run: npm install --include=dev
working-directory: eventbridge
- name: Test
run: wing test
working-directory: eventbridge
canary-fifoqueue:
name: Test fifoqueue
runs-on: ubuntu-latest
Expand Down Expand Up @@ -109,6 +130,27 @@ jobs:
- name: Test
run: wing test
working-directory: github
canary-lock:
name: Test lock
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
sparse-checkout: lock
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20.x
registry-url: https://registry.npmjs.org
- name: Install winglang
run: npm i -g winglang
- name: Install dependencies
run: npm install --include=dev
working-directory: lock
- name: Test
run: wing test
working-directory: lock
canary-ngrok:
name: Test ngrok
runs-on: ubuntu-latest
Expand Down Expand Up @@ -193,6 +235,27 @@ jobs:
- name: Test
run: wing test
working-directory: sagemaker
canary-simtools:
name: Test simtools
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
sparse-checkout: simtools
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20.x
registry-url: https://registry.npmjs.org
- name: Install winglang
run: npm i -g winglang
- name: Install dependencies
run: npm install --include=dev
working-directory: simtools
- name: Test
run: wing test
working-directory: simtools
canary-vite:
name: Test vite
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/eventbridge-pull.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
paths:
- eventbridge/**
jobs:
build:
build-eventbridge:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -14,7 +14,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 20.x
registry-url: https://registry.npmjs.org
- name: Install winglang
run: npm i -g winglang
Expand Down
21 changes: 19 additions & 2 deletions .github/workflows/eventbridge-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ on:
- main
paths:
- eventbridge/**
- "!eventbridge/package-lock.json"
jobs:
build:
build-eventbridge:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -16,7 +17,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 20.x
registry-url: https://registry.npmjs.org
- name: Install winglang
run: npm i -g winglang
Expand All @@ -29,9 +30,25 @@ jobs:
- name: Pack
run: wing pack
working-directory: eventbridge
- name: Get package version
run: echo WINGLIB_VERSION=$(node -p "require('./package.json').version") >>
"$GITHUB_ENV"
working-directory: eventbridge
- name: Publish
run: npm publish --access=public --registry https://registry.npmjs.org --tag
latest *.tgz
working-directory: eventbridge
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Tag commit
uses: tvdias/[email protected]
with:
repo-token: ${{ secrets.PROJEN_GITHUB_TOKEN }}
tag: eventbridge-v${{ env.WINGLIB_VERSION }}
- name: GitHub release
uses: softprops/action-gh-release@v1
with:
name: eventbridge v${{ env.WINGLIB_VERSION }}
tag_name: eventbridge-v${{ env.WINGLIB_VERSION }}
files: "*.tgz"
token: ${{ secrets.PROJEN_GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/lock-pull.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
paths:
- lock/**
jobs:
build:
build-lock:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -14,7 +14,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 20.x
registry-url: https://registry.npmjs.org
- name: Install winglang
run: npm i -g winglang
Expand Down
21 changes: 19 additions & 2 deletions .github/workflows/lock-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ on:
- main
paths:
- lock/**
- "!lock/package-lock.json"
jobs:
build:
build-lock:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -16,7 +17,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 20.x
registry-url: https://registry.npmjs.org
- name: Install winglang
run: npm i -g winglang
Expand All @@ -29,9 +30,25 @@ jobs:
- name: Pack
run: wing pack
working-directory: lock
- name: Get package version
run: echo WINGLIB_VERSION=$(node -p "require('./package.json').version") >>
"$GITHUB_ENV"
working-directory: lock
- name: Publish
run: npm publish --access=public --registry https://registry.npmjs.org --tag
latest *.tgz
working-directory: lock
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Tag commit
uses: tvdias/[email protected]
with:
repo-token: ${{ secrets.PROJEN_GITHUB_TOKEN }}
tag: lock-v${{ env.WINGLIB_VERSION }}
- name: GitHub release
uses: softprops/action-gh-release@v1
with:
name: lock v${{ env.WINGLIB_VERSION }}
tag_name: lock-v${{ env.WINGLIB_VERSION }}
files: "*.tgz"
token: ${{ secrets.PROJEN_GITHUB_TOKEN }}
29 changes: 29 additions & 0 deletions .github/workflows/simtools-pull.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: simtools-pull
on:
pull_request:
paths:
- simtools/**
jobs:
build-simtools:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
sparse-checkout: simtools
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20.x
registry-url: https://registry.npmjs.org
- name: Install winglang
run: npm i -g winglang
- name: Install dependencies
run: npm install --include=dev
working-directory: simtools
- name: Test
run: wing test
working-directory: simtools
- name: Pack
run: wing pack
working-directory: simtools
54 changes: 54 additions & 0 deletions .github/workflows/simtools-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: simtools-release
on:
push:
branches:
- main
paths:
- simtools/**
- "!simtools/package-lock.json"
jobs:
build-simtools:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
sparse-checkout: simtools
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20.x
registry-url: https://registry.npmjs.org
- name: Install winglang
run: npm i -g winglang
- name: Install dependencies
run: npm install --include=dev
working-directory: simtools
- name: Test
run: wing test
working-directory: simtools
- name: Pack
run: wing pack
working-directory: simtools
- name: Get package version
run: echo WINGLIB_VERSION=$(node -p "require('./package.json').version") >>
"$GITHUB_ENV"
working-directory: simtools
- name: Publish
run: npm publish --access=public --registry https://registry.npmjs.org --tag
latest *.tgz
working-directory: simtools
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Tag commit
uses: tvdias/[email protected]
with:
repo-token: ${{ secrets.PROJEN_GITHUB_TOKEN }}
tag: simtools-v${{ env.WINGLIB_VERSION }}
- name: GitHub release
uses: softprops/action-gh-release@v1
with:
name: simtools v${{ env.WINGLIB_VERSION }}
tag_name: simtools-v${{ env.WINGLIB_VERSION }}
files: "*.tgz"
token: ${{ secrets.PROJEN_GITHUB_TOKEN }}
18 changes: 18 additions & 0 deletions .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,18 @@ pull_request_rules:
- -check-failure=build-containers
- -check-pending=build-containers
- -check-stale=build-containers
- -check-failure=build-eventbridge
- -check-pending=build-eventbridge
- -check-stale=build-eventbridge
- -check-failure=build-fifoqueue
- -check-pending=build-fifoqueue
- -check-stale=build-fifoqueue
- -check-failure=build-github
- -check-pending=build-github
- -check-stale=build-github
- -check-failure=build-lock
- -check-pending=build-lock
- -check-stale=build-lock
- -check-failure=build-ngrok
- -check-pending=build-ngrok
- -check-stale=build-ngrok
Expand All @@ -62,6 +68,9 @@ pull_request_rules:
- -check-failure=build-sagemaker
- -check-pending=build-sagemaker
- -check-stale=build-sagemaker
- -check-failure=build-simtools
- -check-pending=build-simtools
- -check-stale=build-simtools
- -check-failure=build-vite
- -check-pending=build-vite
- -check-stale=build-vite
Expand Down Expand Up @@ -95,12 +104,18 @@ pull_request_rules:
- -check-failure=build-containers
- -check-pending=build-containers
- -check-stale=build-containers
- -check-failure=build-eventbridge
- -check-pending=build-eventbridge
- -check-stale=build-eventbridge
- -check-failure=build-fifoqueue
- -check-pending=build-fifoqueue
- -check-stale=build-fifoqueue
- -check-failure=build-github
- -check-pending=build-github
- -check-stale=build-github
- -check-failure=build-lock
- -check-pending=build-lock
- -check-stale=build-lock
- -check-failure=build-ngrok
- -check-pending=build-ngrok
- -check-stale=build-ngrok
Expand All @@ -113,6 +128,9 @@ pull_request_rules:
- -check-failure=build-sagemaker
- -check-pending=build-sagemaker
- -check-stale=build-sagemaker
- -check-failure=build-simtools
- -check-pending=build-simtools
- -check-stale=build-simtools
- -check-failure=build-vite
- -check-pending=build-vite
- -check-stale=build-vite
Expand Down
2 changes: 2 additions & 0 deletions simtools/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
target/
node_modules/
21 changes: 21 additions & 0 deletions simtools/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 Wing

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading

0 comments on commit 67e2358

Please sign in to comment.