Skip to content

feat: 🌈 First commit #2

feat: 🌈 First commit

feat: 🌈 First commit #2

Workflow file for this run

name: Cargo Build & Test
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
build_and_test:
name: Rust project - latest
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
- beta
#- nightly
steps:
- uses: actions/checkout@v3
- name: Set up Rust
run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- name: Install the test dependencies
run: apt-get update && apt-get install -y rrdcached socat
- name: Run the rrdcached server
run: |
mkdir -p /tmp/rrdcached/db /tmp/rrdcached/journal &&
rrdcached -B -R -t 2 -b /tmp/rrdcached/db -j /tmp/rrdcached/journal -l 42217 -p /tmp/rrdcached.pid &&
socat UNIX-LISTEN:./rrdcached.sock,reuseaddr,fork TCP:localhost:42217 &
- name: Test the project
run: cargo test --verbose