diff --git a/.github/workflows/setup.yml b/.github/workflows/nodejs.yml similarity index 60% rename from .github/workflows/setup.yml rename to .github/workflows/nodejs.yml index 0f657cc..de141b2 100644 --- a/.github/workflows/setup.yml +++ b/.github/workflows/nodejs.yml @@ -1,4 +1,4 @@ -name: Setup +name: Nodejs Action on: workflow_dispatch: @@ -8,9 +8,13 @@ jobs: runs-on: ubuntu-latest name: Action Test steps: + - uses: actions/setup-node@v3 + with: + node-version: 18 + - uses: actions/checkout@v4 - uses: stateful/runme-action@v2 with: workflows: | install build - test \ No newline at end of file + test diff --git a/README.md b/README.md index f7c153f..27dc7fe 100644 --- a/README.md +++ b/README.md @@ -26,29 +26,32 @@ A simple HTTP API, with the following available commands: - build - test - ---- -runme: - id: 01HJ6HRR8N3W4ZDXHWRQAW0CDR - version: v2.0 --- +## runme: +id: 01HJ6HRR8N3W4ZDXHWRQAW0CDR +version: v2.0 + # Basic HTTP Api example ## Install dependencies -```sh {"name":"install"} +```sh {"id":"01HJW094MYMBQS4E7525NWWK5K","name":"echo"} +echo test +``` + +```sh {"id":"01HJW05Z7S4PVXVV8JK83CK0C2","name":"install"} npm i ``` ## Build TypeScript -```sh {"name":"build"} +```sh {"id":"01HJW05Z7S4PVXVV8JK8E8D3ZV","name":"build"} npm run build ``` ## Run tests -```sh {"name":"test"} +```sh {"id":"01HJW05Z7S4PVXVV8JK8W3QFKE","name":"test"} npm test ``` \ No newline at end of file diff --git a/nodejs/README.md b/nodejs/README.md index 174821c..072540b 100644 --- a/nodejs/README.md +++ b/nodejs/README.md @@ -22,4 +22,4 @@ npm run build ```sh {"id":"01HJ6HTQA87DKZEW7FTY24YA3J","name":"test"} npm test -``` \ No newline at end of file +```