GitHub Action
Install MMock (cross-platform)
v1.1.2
Latest version
Install MMock action
MMock is a testing and fast prototyping tool for developers - easy and fast HTTP mock server.
This action installs MMock as a binary file into your workflow. It can be run on Linux (ubuntu-latest
),
macOS (macos-latest
), or Windows (windows-latest
).
- 🚀 MMock releases page: https://github.com/jmartin82/mmock/releases
Additionally, this action uses the GitHub caching mechanism to speed up your workflow execution time!
jobs:
install-mmock:
runs-on: ubuntu-latest
steps:
- uses: gacts/install-mmock@v1 # Action page: <https://github.com/gacts/install-mmock>
#with:
# version: 3.0.0 # `latest` by default, but you can set a specific version to install
- run: mmock -h # any mmock command can be executed
The following inputs can be used as step.with
keys:
Name | Type | Default | Required | Description |
---|---|---|---|---|
version |
string |
latest |
no | MMock version to install |
github-token |
string |
${{ github.token }} |
no | GitHub token (for requesting the latest MMock version info) |
Name | Type | Description |
---|---|---|
mmock-bin |
string |
Path to the MMock binary file |
To release a new version:
- Build the action distribution (
make build
ornpm run build
). - Commit and push changes (including
dist
directory changes - this is important) to themaster|main
branch. - Publish the new release using the repo releases page (the git tag should follow the
vX.Y.Z
format).
Major and minor git tags (v1
and v1.2
if you publish a v1.2.Z
release) will be updated automatically.
Tip
Use Dependabot to keep this action updated in your repository.
If you find any errors in the action, please create an issue in this repository.
This is open-source software licensed under the MIT License.