diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml index fbd19aa79..dbff00f6d 100644 --- a/.github/workflows/test-action.yml +++ b/.github/workflows/test-action.yml @@ -295,7 +295,7 @@ jobs: - name: Test GitHub Action uses: ./ with: - custom_command: 'bundle ./test/bundle/asyncapi.yaml ./test/bundle/features.yaml --base ./test/bundle/asyncapi.yaml --reference-into-components -o ./output/bundle/asyncapi.yaml' + custom_command: 'bundle ./test/bundle/asyncapi.yaml ./test/bundle/features.yaml --base ./test/bundle/asyncapi.yaml -o ./output/bundle/asyncapi.yaml' - name: Assert GitHub Action run: | echo "Listing all files" diff --git a/Makefile b/Makefile index ad852f13b..81863fcf0 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ export GITHUB_WORKSPACE = $(shell pwd) run: @bash ./entrypoint.sh $(DEFAULT_VERSION) $(DEFAULT_COMMAND) $(TEST_FILEPATH) $(DEFAULT_TEMPLATE) $(DEFAULT_LANGUAGE) $(DEFAULT_OUTPUT) $(DEFAULT_PARAMETERS) $(DEFAULT_CUSTOM_COMMANDS) -test: test-default test-validate-success test-validate-fail test-custom-output test-custom-commands test-optimize test-bundle test-convert test-action-bump +test: test-default test-validate-success test-custom-output test-custom-commands test-optimize test-bundle test-convert test-action-bump # Test cases @@ -51,7 +51,7 @@ test-optimize: @bash ./entrypoint.sh $(DEFAULT_VERSION) 'optimize' 'test/unoptimized.yml' $(DEFAULT_TEMPLATE) $(DEFAULT_LANGUAGE) $(DEFAULT_OUTPUT) '-o new-file --no-tty' $(DEFAULT_CUSTOM_COMMANDS) # Tests if the action can bundle the specification with custom commands -BUNDLE_COMMAND='bundle ./test/bundle/asyncapi.yaml ./test/bundle/features.yaml --base ./test/bundle/asyncapi.yaml --reference-into-components -o ./output/bundle/asyncapi.yaml' +BUNDLE_COMMAND='bundle ./test/bundle/asyncapi.yaml ./test/bundle/features.yaml --base ./test/bundle/asyncapi.yaml -o ./output/bundle/asyncapi.yaml' test-bundle: mkdir -p ./output/bundle @bash ./entrypoint.sh $(DEFAULT_VERSION) 'bundle' 'test/bundle/asyncapi.yaml' $(DEFAULT_TEMPLATE) $(DEFAULT_LANGUAGE) $(DEFAULT_OUTPUT) '-o output/bundle/asyncapi.yaml' $(BUNDLE_COMMAND) diff --git a/action.yml b/action.yml index e7c04d68d..5366e43d0 100644 --- a/action.yml +++ b/action.yml @@ -38,7 +38,7 @@ runs: using: 'docker' # This is the image that will be used to run the action. # IMPORTANT: The version has to be changed manually in your PRs. - image: 'docker://asyncapi/github-action-for-cli:3.1.1' + image: 'docker://asyncapi/github-action-for-cli:3.1.2' args: - ${{ inputs.cli_version }} - ${{ inputs.command }} diff --git a/bump-test.sh b/bump-test.sh index a36f5a541..bda3dc112 100755 --- a/bump-test.sh +++ b/bump-test.sh @@ -14,6 +14,6 @@ echo "Package version: $version"; if [[ $action_version > $version ]]; then echo "Action version is greater than package version"; else \ - echo "Action version has not been bumped. Please bump the action version to the semantically correct version after $$version"; \ + echo "Action version has not been bumped. Please bump the action version to the semantically correct version after $version"; \ exit 1; \ fi \ No newline at end of file diff --git a/test/bundle/features.yaml b/test/bundle/features.yaml index 78ec8b161..8fca5f01f 100644 --- a/test/bundle/features.yaml +++ b/test/bundle/features.yaml @@ -5,6 +5,6 @@ info: description: This service is in charge of processing user logouts channels: user/loggedOut: - subcribe: + subscribe: message: - $ref: 'test/bundle/messages.yaml#/messages/UserLoggedOut' + $ref: "./test/bundle/messages.yaml#/messages/UserLoggedOut" \ No newline at end of file