Skip to content

Commit

Permalink
ci: remove fail test (#398)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shurtu-gal authored Jul 22, 2024
1 parent 590180c commit da8563b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion bump-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions test/bundle/features.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit da8563b

Please sign in to comment.