Skip to content

Update Cargo deps: Bump clap from 4.5.8 to 4.5.9 in the cargo-deps group #19

Update Cargo deps: Bump clap from 4.5.8 to 4.5.9 in the cargo-deps group

Update Cargo deps: Bump clap from 4.5.8 to 4.5.9 in the cargo-deps group #19

name: Continuous Integration
on:
pull_request:
push:
branches:
- main
paths:
- '.github/workflows/ci.yml'
- 'schemius/**'
- 'schemius-native/**'
- 'schemius-web/src/**'
- 'schemius-web/Cargo.toml'
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
toolchain: [stable, nightly]
steps:
- name: Set up Rust
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain ${{ matrix.toolchain }}
cargo install cargo-tarpaulin
- name: Check Rust toolchain
run: rustup toolchain list
- name: Check out code
uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Test
run: cargo test --verbose
- name: Generate code coverage
run: cargo tarpaulin --out lcov
if: matrix.toolchain == 'stable' && matrix.os == 'ubuntu-latest'
- name: Upload code coverage to Coveralls
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./lcov.info
if: matrix.os == 'ubuntu-latest' && matrix.toolchain == 'stable'