File: rust.yml

package info (click to toggle)
rust-four-cc 0.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 160 kB
  • sloc: makefile: 2
file content (43 lines) | stat: -rw-r--r-- 974 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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'