-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnats-0.1.5-r1.yaml
83 lines (77 loc) · 2.07 KB
/
nats-0.1.5-r1.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
package:
name: nats-0.1.5-r1
version: 0.1.5
epoch: 1
description: The NATS Command Line Interface.
copyright:
- license: Apache-2.0
environment:
contents:
packages:
- busybox
- ca-certificates-bundle
- go
- wolfi-baselayout
pipeline:
# We can't use go/install because this requires a specific go version
- uses: git-checkout
with:
repository: https://github.com/nats-io/natscli
tag: v${{package.version}}
expected-commit: 74fd7c740385aa95365e45daa8079e2a67953c65
- uses: go/build
with:
packages: ./nats
output: nats
- uses: strip
update:
enabled: true
github:
identifier: nats-io/natscli
strip-prefix: v
test:
environment:
contents:
packages:
- bash
- curl
- jq
- nats-server
pipeline:
- name: "Verify basic installation"
runs: |
nats --version
nats --help
- name: "Verify core commands help"
runs: |
nats pub --help
nats sub --help
nats request --help
nats reply --help
- name: "Test NATS server startup and interaction"
uses: test/daemon-check-output
with:
start: nats-server -DV
timeout: 30
expected_output: |
Server is ready
post: |
#!/bin/sh -e
# Test basic pub/sub functionality with running server
nats pub test.subject "test message" --server nats://localhost:4222 &
nats sub test.subject --count 1 --server nats://localhost:4222 &
# Verify server monitoring endpoint
curl -s http://localhost:8222/varz | jq .server_id
- name: "Test monitoring server startup"
uses: test/daemon-check-output
with:
start: nats-server -m 8222
timeout: 15
expected_output: |
Server is ready
post: |
#!/bin/sh -e
# Verify monitoring endpoints
curl -s http://localhost:8222/varz | jq .server_id
curl -s http://localhost:8222/connz | jq .now
curl -s http://localhost:8222/routez | jq .now