Skip to content

Commit 2531fcb

Browse files
author
Devdutt Shenoi
committed
ci: lint, test and coverage report
1 parent a08e096 commit 2531fcb

File tree

3 files changed

+58
-61
lines changed

3 files changed

+58
-61
lines changed

.github/workflows/coverage.yaml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
on:
2+
pull_request:
3+
paths-ignore:
4+
- "docs/**"
5+
- "helm/**"
6+
- "assets/**"
7+
- "**.md"
8+
push:
9+
branches:
10+
- main
11+
12+
name: Lint, Test and Coverage Report
13+
jobs:
14+
coverage:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v2
18+
- uses: dtolnay/rust-toolchain@stable
19+
with:
20+
components: clippy
21+
22+
- uses: Swatinem/rust-cache@v2
23+
with:
24+
shared-key: ${{ runner.os }}-cargo
25+
26+
- uses: taiki-e/install-action@v2
27+
with:
28+
tool: cargo-hack, cargo-llvm-cov, nextest
29+
30+
- name: Check with clippy
31+
run: cargo hack clippy --verbose --each-feature --no-dev-deps -- -D warnings
32+
33+
- name: Check docs
34+
run: cargo hack doc --verbose --no-deps --each-feature --no-dev-deps
35+
36+
- name: Doctests
37+
run: cargo hack --each-feature test --doc
38+
39+
- name: Tests
40+
run: cargo hack --each-feature llvm-cov --no-report nextest
41+
42+
- name: Genrate coverage report
43+
run: cargo llvm-cov report --lcov --output-path coverage.lcov
44+
45+
- name: Upload Coverage Report
46+
uses: coverallsapp/[email protected]
47+
with:
48+
github-token: ${{ secrets.GITHUB_TOKEN }}
49+
file: ./coverage.lcov
50+
parallel: true
51+
flag-name: run-${{ matrix.os }}-cargo
52+
53+
- name: Finish Coverage Report
54+
uses: coverallsapp/[email protected]
55+
with:
56+
github-token: ${{ secrets.GITHUB_TOKEN }}
57+
parallel-finished: true

.github/workflows/lint.yaml

Lines changed: 0 additions & 61 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
[![Slack](https://img.shields.io/badge/slack-brightgreen.svg?logo=slack&label=Community&style=flat&color=%2373DC8C&)](https://logg.ing/community)
1515
[![Docs](https://img.shields.io/badge/stable%20docs-parseable.io%2Fdocs-brightgreen?style=flat&color=%2373DC8C&label=Docs)](https://logg.ing/docs)
1616
[![Build](https://img.shields.io/github/checks-status/parseablehq/parseable/main?style=flat&color=%2373DC8C&label=Checks)](https://github.com/parseablehq/parseable/actions)
17+
[![Coverage Status](https://coveralls.io/repos/github/parseablehq/parseable/badge.svg?branch=main)](https://coveralls.io/github/parseablehq/parseable?branch=main)
1718

1819
[Key Concepts](https://www.parseable.io/docs/concepts) | [Features](https://github.com/parseablehq/parseable#rocket-highlights) | [Documentation](https://www.parseable.io/docs) | [Demo](https://demo.parseable.com/login?q=eyJ1c2VybmFtZSI6ImFkbWluIiwicGFzc3dvcmQiOiJhZG1pbiJ9) | [Integrations](https://www.parseable.io/docs/category/integrations) | [FAQ](https://www.parseable.io/docs/faq)
1920

0 commit comments

Comments
 (0)