Skip to content

Use NATS_URL environment variable to determine NATS addr #6

Use NATS_URL environment variable to determine NATS addr

Use NATS_URL environment variable to determine NATS addr #6

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
container:
image: rust:1.79
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"