-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (29 loc) · 925 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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