diff --git a/.github/renovate.json b/.github/renovate.json new file mode 100644 index 0000000..5cdaad0 --- /dev/null +++ b/.github/renovate.json @@ -0,0 +1,4 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": ["local>jbanghub/.github"] +} diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..b5cb5f9 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,12 @@ +name: build + +on: + push: + branches: + - main + pull_request: + +jobs: + build: + uses: jbanghub/.github/.github/workflows/shared-build.yml@main + secrets: inherit \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..722d5e7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.vscode diff --git a/jbang-catalog.json b/jbang-catalog.json new file mode 100644 index 0000000..df660fb --- /dev/null +++ b/jbang-catalog.json @@ -0,0 +1,42 @@ +{ + "catalogs": {}, + "aliases": { + "wrk2": { + "script-ref": "io.hyperfoil:hyperfoil-cli:0.25.2", + "dependencies": [ + "io.hyperfoil:hyperfoil-all:0.25.2@pom", + "io.hyperfoil:hyperfoil-api", + "io.hyperfoil:hyperfoil-clustering", + "io.hyperfoil:hyperfoil-controller-api", + "io.hyperfoil:hyperfoil-core", + "io.hyperfoil:hyperfoil-http" + ], + "main": "io.hyperfoil.cli.commands.Wrk2" + }, + "wrk": { + "script-ref": "io.hyperfoil:hyperfoil-cli:0.25.2", + "dependencies": [ + "io.hyperfoil:hyperfoil-all:0.25.2@pom", + "io.hyperfoil:hyperfoil-api", + "io.hyperfoil:hyperfoil-clustering", + "io.hyperfoil:hyperfoil-controller-api", + "io.hyperfoil:hyperfoil-core", + "io.hyperfoil:hyperfoil-http" + ], + "main": "io.hyperfoil.cli.commands.Wrk" + }, + "cli": { + "script-ref": "io.hyperfoil:hyperfoil-cli:0.25.2", + "dependencies": [ + "io.hyperfoil:hyperfoil-all:0.25.2@pom", + "io.hyperfoil:hyperfoil-api", + "io.hyperfoil:hyperfoil-clustering", + "io.hyperfoil:hyperfoil-controller-api", + "io.hyperfoil:hyperfoil-core", + "io.hyperfoil:hyperfoil-http" + ], + "main": "io.hyperfoil.cli.HyperfoilCli" + } + }, + "templates": {} +} \ No newline at end of file diff --git a/readme.adoc b/readme.adoc new file mode 100755 index 0000000..86c7905 --- /dev/null +++ b/readme.adoc @@ -0,0 +1,19 @@ +# Hyperfoil JBang Catalog + +This is a catalog of JBang scripts for Hyperfoil. + +## Usage + +To use the scripts from this catalog you need to have [JBang](https://www.jbang.dev/) installed. + +Example of running the 'wrk2' is as follows: + +```shell +jbang wrk2@hyperfoil -t2 -c100 -d30s --latency http://localhost:8080 +``` + +To list all the available scripts in the catalog you can use the following command: + +```shell +jbang catlog list hyperfoil +```