Skip to content

Commit

Permalink
chore: added codecov integration in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
lmammino committed Oct 29, 2023
1 parent c764097 commit 2e4cae3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,17 @@ jobs:
with:
toolchain: stable
components: clippy, rustfmt

- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov

- uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-release-${{ hashFiles('**/Cargo.lock') }}
key: ${{ runner.os }}-rust-test-${{ hashFiles('**/Cargo.lock') }}

- name: Run cargo fmt
run: cargo fmt -- --check
Expand All @@ -41,6 +44,16 @@ jobs:

- name: Run cargo build
run: cargo build --locked --release

- name: Generate code coverage
run: cargo llvm-cov --all-features --lcov --output-path lcov.info

- name: Upload coverage to codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: lcov.info
fail_ci_if_error: true

build:
runs-on: ubuntu-latest
Expand All @@ -63,7 +76,7 @@ jobs:
~/.cargo/git
~/.cargo/bin
target
key: ${{ runner.os }}-cargo-release-${{ hashFiles('**/Cargo.lock') }}
key: ${{ runner.os }}-rust-build-${{ hashFiles('**/Cargo.lock') }}

- name: Install cargo lambda
run: cargo install --locked cargo-lambda
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# oidc-authorizer

[![Rust](https://github.com/lmammino/oidc-authorizer/actions/workflows/rust.yml/badge.svg)](https://github.com/lmammino/oidc-authorizer/actions/workflows/rust.yml)


A high-performance token-based API Gateway authorizer Lambda that can validate OIDC-issued JWT tokens.


Expand Down

0 comments on commit 2e4cae3

Please sign in to comment.