https://github.com/step-security/nats-action
start nats server(s) for Github Actions
https://github.com/step-security/nats-action
step-security-maintained-actions
Last synced: 7 months ago
JSON representation
start nats server(s) for Github Actions
- Host: GitHub
- URL: https://github.com/step-security/nats-action
- Owner: step-security
- License: mit
- Created: 2024-07-01T15:14:52.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-28T10:18:15.000Z (over 1 year ago)
- Last Synced: 2025-01-28T11:27:10.498Z (over 1 year ago)
- Topics: step-security-maintained-actions
- Language: TypeScript
- Homepage:
- Size: 517 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
*This action can only be run on Linux runners as it requires Docker to be available in the environment*
# Nats Action
Starts Nats server/cluster for automated CI/CD.
# Usage
```yaml
name: Test
on: [push]
jobs:
test-cluster:
runs-on: ubuntu-latest
name: Test cluster
steps:
- name: Create Nats cluster
uses: step-security/nats-action@v0
with:
port: "4222 4223 4224" # multiple different ports will start a cluster. single port will start a single server
- name: test connection to cluster
uses: onichandame/nats-client-action@master
with:
servers: "nats://localhost:4222 nats://localhost:4223 nats://localhost:4224"
cluster: "true"
```