From 52c140d1058284a91053a7f970c272f33e802a03 Mon Sep 17 00:00:00 2001 From: ash17290 <136432476+ash17290@users.noreply.github.com> Date: Thu, 22 Aug 2024 01:23:47 +0530 Subject: [PATCH] Update test.yml --- .github/workflows/test.yml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f6a8dbd..e9bfa7e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,14 +5,18 @@ on: - push jobs: - test: + generate-models: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - name: Generating models from my AsyncAPI document - uses: asyncapi/github-action-for-cli@v3.1.2 # You can use any version you want - with: - command: generate - filepath: asyncapi.yml - language: typescript - output: generated-models + #"standard step" where repo needs to be checked-out first + - name: Checkout repo + uses: actions/checkout@v2 + + - name: Generating models from my AsyncAPI document + uses: asyncapi/github-action-for-cli@v3.1.1 # You can use any version you want + with: + command: generate + filepath: docs/api/async-api.yml + language: golang + parameters: --packageName=models + output: docs/api/generated-models