File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ on :
2+ pull_request :
3+ push :
4+ branches :
5+ - main
6+
7+
8+ name : Check and Lint
9+
10+ jobs :
11+ check :
12+ name : Check
13+ runs-on : ubuntu-latest
14+ steps :
15+ - uses : actions/checkout@v2
16+ - uses : actions-rs/toolchain@v1
17+ with :
18+ profile : minimal
19+ toolchain : stable
20+ override : true
21+ - uses : actions-rs/cargo@v1
22+ with :
23+ command : check
24+
25+ fmt :
26+ name : Rustfmt
27+ runs-on : ubuntu-latest
28+ steps :
29+ - uses : actions/checkout@v2
30+ - uses : actions-rs/toolchain@v1
31+ with :
32+ profile : minimal
33+ toolchain : stable
34+ override : true
35+ - run : rustup component add rustfmt
36+ - uses : actions-rs/cargo@v1
37+ with :
38+ command : fmt
39+ args : --all -- --check
40+
41+ clippy :
42+ name : Clippy
43+ runs-on : ubuntu-latest
44+ permissions :
45+ checks : write
46+ steps :
47+ - uses : actions/checkout@v3
48+ - uses : dtolnay/rust-toolchain@stable
49+ with :
50+ components : clippy
51+ - uses : auguwu/clippy-action@1.4.0
52+ with :
53+ token : ${{secrets.GITHUB_TOKEN}}
54+
Original file line number Diff line number Diff line change 1+ name : coverage
2+
3+ on : [push]
4+ jobs :
5+ test :
6+ name : coverage
7+ runs-on : ubuntu-latest
8+ container :
9+ image : xd009642/tarpaulin:develop-nightly
10+ options : --security-opt seccomp=unconfined
11+
12+ steps :
13+ - name : Checkout repository
14+ uses : actions/checkout@v2
15+
16+ - name : Generate code coverage
17+ run : |
18+ cargo +nightly tarpaulin --verbose --all-features --workspace --timeout 120 --out xml
19+
20+ - name : make coverage badge
21+ uses : gaelgirodon/ci-badges-action@v1
22+ with :
23+ gist-id : cd22d345696706dc24434c103b64ccea
24+ token : ${{ secrets.COVERAGE_GIST_TOKEN }}
Original file line number Diff line number Diff line change 1+ # bec_log_ingestor
2+
3+ [ ![ Linting] ( https://github.com/d-perl/bec_log_ingestor/actions/workflows/check-and-lint.yaml/badge.svg )] ( https://github.com/d-perl/bec_log_ingestor/actions/workflows/check-and-lint.yaml ) [ ![ Test coverage] (https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/d-perl/cd22d345696706dc24434c103b64ccea/raw/
4+ )] ( https://github.com/d-perl/bec_log_ingestor/actions/workflows/test-and-coverage.yaml )
5+
6+ Tiny service to pull BEC logs from Redis and push them to Elastic
You can’t perform that action at this time.
0 commit comments