Skip to content

Commit c6bb2b2

Browse files
committed
add badges to readme and add coverage workflow
1 parent 5974c23 commit c6bb2b2

File tree

3 files changed

+32
-1
lines changed

3 files changed

+32
-1
lines changed

.github/workflows/coverage.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: coverage
2+
3+
on: [push]
4+
5+
jobs:
6+
test:
7+
name: coverage
8+
runs-on: ubuntu-latest
9+
container:
10+
image: xd009642/tarpaulin:develop-nightly
11+
options: --security-opt seccomp=unconfined
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Generate coverage report
16+
run: |
17+
cargo +nightly tarpaulin --verbose --out Xml
18+
19+
- name: Upload coverage reports to Codecov
20+
uses: codecov/codecov-action@v5
21+
with:
22+
token: ${{secrets.CODECOV_TOKEN}}
23+
fail_ci_if_error: false

.github/workflows/rust.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Rust CI
1+
name: Build
22

33
on:
44
push:

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
# Komandan
44
##### Your army commander
55

6+
[![Build Status]][github-actions] [![License:MIT]][license]
7+
8+
[Build Status]: https://github.com/hahnavi/komandan/actions/workflows/rust.yml/badge.svg
9+
[github-actions]: https://github.com/hahnavi/komandan/actions
10+
[License:MIT]: https://img.shields.io/badge/License-MIT-yellow.svg
11+
[license]: https://github.com/hahnavi/komandan/blob/master/LICENSE
12+
13+
614
</div>
715

816
Komandan is a server automation tool that uses Lua programming language interface. It connects to target servers via SSH, following Ansible's approach for its simplicity and agentless operation on managed servers.

0 commit comments

Comments
 (0)