This repository has been archived by the owner on Oct 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: a bunch of user friendliness changes (#4)
Co-authored-by: Sébastien Dan <[email protected]>
- Loading branch information
1 parent
fd9a18c
commit dc3f147
Showing
16 changed files
with
773 additions
and
277 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,7 +1,9 @@ | ||
name: Publish Package to NPM Registry | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
npm-package: | ||
runs-on: ubuntu-latest-16-core | ||
|
@@ -17,3 +19,18 @@ jobs: | |
- run: npm publish --access public | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
notification: | ||
runs-on: ubuntu-latest-16-core | ||
needs: npm-package | ||
steps: | ||
- name: Send Slack notification | ||
uses: slackapi/[email protected] | ||
with: | ||
payload: | | ||
{ | ||
"repository": "${{ github.repository }}", | ||
"version": "${{ github.ref }}" | ||
} | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ vars.RELEASE_PIPELINE_SLACK_WEBHOOK_URL }} |
This file was deleted.
Oops, something went wrong.
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,40 @@ | ||
name: Smoke test | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
smoke-test: | ||
runs-on: ubuntu-latest-16-core | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up NodeJS | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18' | ||
|
||
- name: Install deps | ||
run: npm ci | ||
|
||
- name: Build | ||
run: npm run build | ||
|
||
- name: Smoke root command | ||
run: node dist/main --help | ||
|
||
- name: Smoke start command | ||
run: (node dist/main start -v | tee >(grep -q "🔥 Everything is done! 🔥" && pkill -P $$); [ $? -eq 143 ]) | ||
|
||
- name: Smoke clean command | ||
run: node dist/main clean -v | ||
|
||
- name: Upload logs | ||
uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: logs | ||
path: /home/runner/.local/state/topos-playground/logs |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,7 +1,7 @@ | ||
{ | ||
"name": "@topos-protocol/topos-playground", | ||
"version": "0.0.2", | ||
"description": "CLI to run local Topos devnets with subnets, a TCE network, and apps", | ||
"description": "topos-playground is a CLI tool which handles all of the orchestration necessary to run local Topos devnets with subnets, a TCE network, and apps.", | ||
"author": "Sébastien Dan <[email protected]>", | ||
"license": "MIT", | ||
"bin": { | ||
|
@@ -18,8 +18,11 @@ | |
"dependencies": { | ||
"@nestjs/common": "^9.0.0", | ||
"@nestjs/core": "^9.0.0", | ||
"chalk": "^4.1.2", | ||
"dotenv": "^16.3.1", | ||
"ethers": "^5.7.2", | ||
"nest-commander": "^3.7.1", | ||
"semver": "^7.5.4", | ||
"winston": "^3.8.2" | ||
}, | ||
"devDependencies": { | ||
|
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
Oops, something went wrong.