Skip to content

Commit

Permalink
fix ci names
Browse files Browse the repository at this point in the history
  • Loading branch information
rajarshimaitra committed Jan 1, 2024
1 parent 07677b1 commit 527b47a
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
- master
pull_request:

name: continuous_builds
name: build

jobs:

Expand Down Expand Up @@ -42,5 +42,3 @@ jobs:
run: rustup update
- name: Build
run: cargo build --features ${{ matrix.features }}
- name: Clippy
run: cargo clippy --all-targets --all-features -- -D warnings
4 changes: 3 additions & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@ jobs:
- name: Update toolchain
run: rustup update
- name: Check fmt
run: cargo fmt --all -- --check
run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy --all-targets --all-features -- -D warnings
42 changes: 42 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
on:
push:
branches:
- master
pull_request:

name: test

jobs:
test_with_codecov:
name: Run tests with coverage reporting
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set default toolchain
run: rustup default nightly
- name: Set profile
run: rustup set profile minimal

# Pin grcov to v0.8.2 because of build failure at 0.8.3
- name: Install grcov
run: cargo install grcov --force --version 0.8.2

# Tests are run with code coverage support
- name: Run cargo test
env:
CARGO_INCREMENTAL: '0'
RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off'
RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off'
run: cargo test --features integration-test
- id: coverage
name: Generate coverage
uses: actions-rs/grcov@v0.1.5

# Upload coverage report
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
file: ${{ steps.coverage.outputs.report }}
directory: ./coverage/reports/

0 comments on commit 527b47a

Please sign in to comment.