Skip to content

Use NATS_URL environment variable to determine NATS addr #4

Use NATS_URL environment variable to determine NATS addr

Use NATS_URL environment variable to determine NATS addr #4

Workflow file for this run

name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
services:
mongodb:
image: nats
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
env:
NATS_URL: "nats:4222"
- name: Run tests
run: cargo test --verbose
env:
NATS_URL: "nats:4222"