Skip to content

Commit

Permalink
update collector(v2): github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kainonly committed Oct 22, 2024
1 parent 564e400 commit fd704d0
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 24 deletions.
12 changes: 5 additions & 7 deletions .github/compose/nats-1.conf
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
server_name: N1
server_name: node-1
listen: 4222

authorization: {
users: [
{ nkey: UB53UQQPTBIMRFMQ33KDCUJPLSRQP4ZZNOEV7MPYKDEE5PGA43URXHEQ }
]
authorization {
token: "s3cr3t"
}

jetstream {
Expand All @@ -16,7 +14,7 @@ cluster {
listen: "0.0.0.0:6222"

routes = [
nats-route://nats-2:6222
nats-route://nats-3:6222
nats://nats-2:6222
nats://nats-3:6222
]
}
12 changes: 5 additions & 7 deletions .github/compose/nats-2.conf
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
server_name: N2
server_name: node-2
listen: 4222

authorization: {
users: [
{ nkey: UB53UQQPTBIMRFMQ33KDCUJPLSRQP4ZZNOEV7MPYKDEE5PGA43URXHEQ }
]
authorization {
token: "s3cr3t"
}

jetstream {
Expand All @@ -16,7 +14,7 @@ cluster {
listen: "0.0.0.0:6222"

routes = [
nats-route://nats-1:6222
nats-route://nats-3:6222
nats://nats-1:6222
nats://nats-3:6222
]
}
12 changes: 5 additions & 7 deletions .github/compose/nats-3.conf
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
server_name: N3
server_name: node-3
listen: 4222

authorization: {
users: [
{ nkey: UB53UQQPTBIMRFMQ33KDCUJPLSRQP4ZZNOEV7MPYKDEE5PGA43URXHEQ }
]
authorization {
token: "s3cr3t"
}

jetstream {
Expand All @@ -16,7 +14,7 @@ cluster {
listen: "0.0.0.0:6222"

routes = [
nats-route://nats-1:6222
nats-route://nats-2:6222
nats://nats-1:6222
nats://nats-2:6222
]
}
6 changes: 3 additions & 3 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: docker-compose -f ".github/compose/docker-compose.yml" up -d
- uses: actions/setup-go@v4
- uses: actions/setup-go@v5
with:
go-version: ~1.22
go-version: ~1.23
- run: go test -race -covermode atomic -coverprofile=covprofile ./client/...
env:
GO111MODULE: on
NATS_HOSTS: nats://127.0.0.1:4222,nats://127.0.0.1:4223,nats://127.0.0.1:4224
NATS_NKEY: SUABEKK3NUTWCP3VMA2KFEKEOVAZHEK6R5LNIL66EWSRJC5Q37UD77FXII
NATS_TOKEN: s3cr3t
- run: |
go install github.com/mattn/goveralls@latest
goveralls -coverprofile=covprofile -service=github
Expand Down

0 comments on commit fd704d0

Please sign in to comment.