Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
ruby: ["3.1", "3.2", "3.3", "3.4"]
ruby: ["2.7", "3.0", "3.1", "3.2", "3.3", "3.4"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand Down
28 changes: 27 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,33 @@ gem "serverkit-mise"

## Usage

TODO: Write usage instructions here
### Prerequisites

- Ensure you have [serverkit](https://github.com/serverkit/serverkit) gem installed
- Ensure you have [mise](https://github.com/jdx/mise) installed on your system

### Basic Example

Create a recipe file that uses the mise resources:

```yaml
# recipe.yml
resources:
# Install Node.js using mise
- type: mise_install
name: node
version: 20.10.0
# Install Ruby and set it as global
- type: mise_use
name: ruby
version: 3.3.0
```

Then apply your recipe with Serverkit:

```console
$ serverkit apply recipe.yml
```

## Resource

Expand Down
4 changes: 2 additions & 2 deletions serverkit-mise.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
spec.description = "Serverkit plug-in for mise."
spec.homepage = "https://github.com/serverkit/serverkit-mise"
spec.license = "MIT"
spec.required_ruby_version = ">= 3.1.0"
spec.required_ruby_version = ">= 2.7.0"

spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = "https://github.com/serverkit/serverkit-mise"
Expand All @@ -31,5 +31,5 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]

spec.add_dependency "serverkit"
spec.add_dependency "serverkit", ">= 1.0.0"
end