diff --git a/github-action/Dockerfile b/github-action/Dockerfile index 152b4108f0d..f669712e1d7 100644 --- a/github-action/Dockerfile +++ b/github-action/Dockerfile @@ -19,6 +19,7 @@ RUN cp -r /tmp/source_code/node_modules /libraries RUN cp -r /tmp/source_code/assets /libraries RUN cp /tmp/source_code/package.json /libraries RUN cp /tmp/source_code/package-lock.json /libraries +RUN cp /tmp/source_code/oclif.manifest.json /libraries # Copy the bin directory to the /libraries directory RUN cp -r /tmp/source_code/bin /libraries @@ -42,7 +43,7 @@ ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser RUN addgroup -S myuser && adduser -S myuser -G myuser # Create a script that runs the desired command -RUN echo -e "#!/bin/bash\n/libraries/bin/run_bin" > /usr/local/bin/asyncapi +RUN ln -s /libraries/bin/run_bin /usr/local/bin/asyncapi # Make the script executable RUN chmod +x /usr/local/bin/asyncapi @@ -53,9 +54,6 @@ RUN chown -R myuser:myuser /libraries /usr/local/bin/asyncapi || echo "Failed to # Copy the entrypoint script COPY github-action/entrypoint.sh /entrypoint.sh -# Copy github-action folder -COPY github-action /github-action - # Make the entrypoint script executable RUN chmod +x /entrypoint.sh diff --git a/package.json b/package.json index e5a578db350..bdadc215878 100644 --- a/package.json +++ b/package.json @@ -169,7 +169,7 @@ "pretest:coverage": "npm run build", "posttest": "rimraf ./test.asyncapi-cli", "release": "semantic-release", - "test": "npm run test:unit", + "test": "npm run test:unit && npm run action:test", "test:unit": "cross-env NODE_ENV=development TEST=1 CUSTOM_CONTEXT_FILENAME=\"test.asyncapi-cli\" CUSTOM_CONTEXT_FILE_LOCATION=\"\" nyc --extension .ts mocha --require ts-node/register --require test/helpers/init.js --reporter spec --timeout 100000 \"test/**/*.test.ts\"", "test:one": "cross-env NODE_ENV=development TEST=1 CUSTOM_CONTEXT_FILENAME=\"test.asyncapi-cli\" CUSTOM_CONTEXT_FILE_LOCATION=\"\" nyc --extension .ts mocha --require ts-node/register --require test/helpers/init.js --reporter spec --timeout 100000", "get-version": "echo $npm_package_version",