Skip to content

Commit

Permalink
yaml auto formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeevab committed Sep 1, 2024
1 parent 8e108cc commit 9240ecc
Showing 1 changed file with 22 additions and 23 deletions.
45 changes: 22 additions & 23 deletions .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,34 +11,33 @@ on:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Run Rustfmt
run: cargo fmt -- --check
- name: Build
run: cargo build --verbose
- name: Build with no default features
run: cargo build --no-default-features
- name: Build with only "alloc" feature
run: cargo build --no-default-features --features="alloc"
- name: Run tests
run: cargo test --verbose
- uses: actions/checkout@v2
- name: Run Rustfmt
run: cargo fmt -- --check
- name: Build
run: cargo build --verbose
- name: Build with no default features
run: cargo build --no-default-features
- name: Build with only "alloc" feature
run: cargo build --no-default-features --features="alloc"
- name: Run tests
run: cargo test --verbose

coverage:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Install Rust
run: rustup update stable
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Generate code coverage
run: mkdir coverage && cargo llvm-cov --tests --all-features --lcov --output-path ./coverage/lcov.info
- name: Send to Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v4
- name: Install Rust
run: rustup update stable
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Generate code coverage
run: mkdir coverage && cargo llvm-cov --tests --all-features --lcov --output-path ./coverage/lcov.info
- name: Send to Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 9240ecc

Please sign in to comment.