madhead / intellij-http-client-action

A thin GitHub Action wrapper around the IntelliJ HTTP Client CLI.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 👐

About

A thin GitHub Action wrapper around the IntelliJ HTTP Client CLI.

License:MIT License


Languages

Language:Shell 88.8%Language:Dockerfile 11.2%