diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 66ff200..e0788ea 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -18,19 +18,19 @@ jobs: - run: npm ci - run: npm test - publish-npm: - needs: build - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 - with: - node-version: 12 - registry-url: https://registry.npmjs.org/ - - run: npm ci - - run: npm publish - env: - NODE_AUTH_TOKEN: ${{secrets.npm_token}} +# publish-npm: +# needs: build +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v2 +# - uses: actions/setup-node@v1 +# with: +# node-version: 12 +# registry-url: https://registry.npmjs.org/ +# - run: npm ci +# - run: npm publish +# env: +# NODE_AUTH_TOKEN: ${{secrets.npm_token}} # publish-gpr: # needs: build diff --git a/.github/workflows/npm-test.yml b/.github/workflows/npm-test.yml new file mode 100644 index 0000000..e4236cb --- /dev/null +++ b/.github/workflows/npm-test.yml @@ -0,0 +1,23 @@ +name: Node Tests CI +on: [ push ] +jobs: + test: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [ '12', '14', '16' ] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + cache: npm + + - name: Install Dependencies + run: npm ci + + - name: Run Unit Tests + run: npm run test diff --git a/readme.md b/readme.md index 88e2ac4..8822225 100644 --- a/readme.md +++ b/readme.md @@ -386,7 +386,7 @@ control systems. example: ```shell -$ asyncapi-format asyncapi.json --configFil asyncapi-format-options.json +$ asyncapi-format asyncapi.json --configFile asyncapi-format-options.json ``` The formatting will happen based on all the options set in the `asyncapi-format-options.json` file. All the