Skip to content

Pin ubuntu version

Pin ubuntu version #19

Workflow file for this run

name: Rust
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Check formatting
run: cargo fmt --check
- name: Build
run: cargo build --verbose
- name: Run no_std tests
run: cargo test --no-default-features
- name: Run std tests
run: cargo test --features std,serde,schemars --doc
coverage:
runs-on: ubuntu-22.04
container:
image: xd009642/tarpaulin:0.27.3
options: --security-opt seccomp=unconfined
steps:
- uses: actions/checkout@v4
- name: Generate code coverage
run: cargo tarpaulin --features std,serde,schemars --doc --tests --timeout 120 --out lcov
- name: upload to Coveralls
uses: coverallsapp/github-action@v2.2.3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: './lcov.info'