Skip to content

Commit 02cbc85

Browse files
committed
install spin message trigger
1 parent afd48b3 commit 02cbc85

File tree

7 files changed

+55
-1
lines changed

7 files changed

+55
-1
lines changed

.github/workflows/test.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
- cargo-deny
3737
- cargo-nextest
3838
- honggfuzz
39+
- spin-message-trigger
3940
# NEXT
4041
baseImage:
4142
- debian:latest
@@ -74,6 +75,7 @@ jobs:
7475
- cargo-deny
7576
- cargo-nextest
7677
- honggfuzz
78+
- spin-message-trigger
7779
# NEXT
7880
steps:
7981
- uses: actions/checkout@v3

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@ Helix | ghcr.io/lee-orr/rusty-dev-containers/helix:0 | Installs the [Helix](http
2929
| Fermyon Spin | ghcr.io/lee-orr/rusty-dev-containers/fermyon-spin:0 | Installs the [Spin CLI](https://developer.fermyon.com/spin/index), allowing building, testing and deploying for Spin-based WASM applications |
3030
| Wasmcloud | ghcr.io/lee-orr/rusty-dev-containers/wasmcloud:0 | Installs Wash - the CLI for [Wasmcloud](https://wasmcloud.com/docs/intro) - a platform for building wasm-based cloud environments. |
3131
| Cosmonic | ghcr.io/lee-orr/rusty-dev-containers/cosmonic:0 | Installs Cosmo - the CLI for [Cosmonic](cosmonic.com/) - a PaaS based on Wasmcloud. Note that it contains all the features provided by Wash, but with the capacity to automatically login to your cosmonic account & connect your dev environment to your constellation on their servers. |
32+
| Spin Message Trigger | ghcr.io/lee-orr/rusty-dev-containers/spin-message-trigger:0 | Installs the [Spin Message Trigger](https://github.com/lee-orr/spin-message-trigger) plugin for Fermyon Spin. Requires the Fermyon Spin feature as well. |

src/spin-message-trigger/README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
2+
# Cargo Expand (cargo-expand)
3+
4+
A feature to install cargo expand
5+
6+
## Example Usage
7+
8+
```json
9+
"features": {
10+
"ghcr.io/lee-orr/rusty-dev-containers/cargo-expand:0": {}
11+
}
12+
```
13+
14+
## Options
15+
16+
| Options Id | Description | Type | Default Value |
17+
|-----|-----|-----|-----|
18+
19+
20+
21+
22+
---
23+
24+
_Note: This file was auto-generated from the [devcontainer-feature.json](https://github.com/lee-orr/rusty-dev-containers/blob/main/src/cargo-expand/devcontainer-feature.json). Add additional notes to a `NOTES.md`._
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "Spin Message Trigger",
3+
"id": "spin-message-trigger",
4+
"version": "0.0.2",
5+
"description": "A feature to install spin message trigger",
6+
"options": {
7+
},
8+
"installsAfter": [
9+
"ghcr.io/lee-orr/rusty-dev-containers/fermyon-spin"
10+
]
11+
}

src/spin-message-trigger/install.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
set -e
3+
4+
spin plugin install --url https://github.com/lee-orr/spin-message-trigger/releases/download/canary/trigger-message.json --yes

test/fermyon-spin/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set -e
66
source dev-container-features-test-lib
77

88
# Definition specific tests
9-
check "installed" cargo install --list | grep "spin"
9+
#check "installed" spin plugins list | grep "message"
1010

1111
# Report result
1212
reportResults

test/spin-message-trigger/test.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
# Optional: Import test library
6+
source dev-container-features-test-lib
7+
8+
# Definition specific tests
9+
check "installed" cargo install --list | grep "spin-message-trigger"
10+
11+
# Report result
12+
reportResults

0 commit comments

Comments
 (0)