Skip to content
arrow-up-right

GitHub Action

intellij-http-client-action

latest Latest version

intellij-http-client-action

arrow-up-right

intellij-http-client-action

IntelliJ HTTP Client CLI GitHub Action – Run Requests and Tests on CI

Installation

Copy and paste the following snippet into your .yml file.

              

- name: intellij-http-client-action

uses: madhead/intellij-http-client-action@latest

Learn more about this action in madhead/intellij-http-client-action

Choose a version

IntelliJ HTTP Client CLI GitHub Action

This is a thin GitHub Action wrapper around the IntelliJ HTTP Client CLI. It allows you to run *.http files in your GitHub Actions workflows.

Usage

The action accepts the same inputs as the original CLI tool. Refer to it’s documentation for more details. A simple way to get that documentation is to run the tool with Docker: docker run --rm -it jetbrains/intellij-http-client:latest.

Generally, the action is used like this 👇

jobs:
  job:
    steps:

      - name: Execute HTTP requests
        uses: madhead/intellij-http-client-action@latest
        with:
          files: |-
            request1.http
            request2.http
          env_file: environments.json
          env: test
          env_variables: |-
            var1=value1
            var2=value2
          insecure: true

String and boolean values, like --env and --insecure, are passed as usually.

List values, like --files or --env-variables, are passed as YAML multiline strings ⚠️

See the test workflow for a complete example. It has named tests, tests with variables & environments, tests with response handlers, etc.

Issues

Do you have an issue or a question? Do not hesitate reporting it! Providing a minimal reproducible example in the test workflow is highly appreciated 👐