Skip to content

Commit

Permalink
Add github CI config and badge to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
boustrophedon committed Feb 24, 2022
1 parent f341205 commit 4a92988
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/build-test.yaml
@@ -0,0 +1,49 @@
name: build-test
on: push
jobs:
validate:
name: Format and Lint Check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install rustfmt and clippy
run: rustup component add rustfmt clippy
- name: Run cargo clippy
run: cargo clippy --all-targets --all-features -- --deny warnings
test:
name: Unit Tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Run tests
run: cargo test

doc:
name: Documentation Check
runs-on: ubuntu-latest
env:
RUSTDOCFLAGS: -Dwarnings
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Generate documentation
run: cargo doc --no-deps

coverage:
name: Code Coverage
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Run cargo tarpaulin
uses: actions-rs/tarpaulin@v0.1
with:
args: '--out Lcov --output-dir ./coverage'
- name: Upload coverage to coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions README.md
@@ -1,3 +1,5 @@
[![build-test](https://github.com/boustrophedon/rss-actions/actions/workflows/build-test.yaml/badge.svg)](https://github.com/boustrophedon/rss-actions/actions/workflows/build-test.yaml) [![Coverage Status](https://coveralls.io/repos/github/boustrophedon/rss-actions/badge.svg?branch=github_ci)](https://coveralls.io/github/boustrophedon/rss-actions?branch=github_ci)

# About rss-actions

This is a Rust library and command-line program for tracking RSS feeds and automatically running scripts when they update.
Expand Down

0 comments on commit 4a92988

Please sign in to comment.