aboutsummaryrefslogblamecommitdiffstats
path: root/.github/workflows/main.yml
blob: c439044d2a45485fca1ee52d664b115025b9ef4c (plain) (tree)
1
2
3
4
5
6
7
8
9




                
       

                          
                                 



                                     
                                                          
                                                                           
                       






                                     
                                                          

                                                                       
name: main
on:
  - pull_request
  - push
jobs:
  main:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: actions-rs/toolchain@v1
        with:
          toolchain: stable
          components: rustfmt, clippy
      - run: cargo run --manifest-path generate/Cargo.toml
      - run: cargo fmt --check && cargo clippy --examples --tests --benches
      - run: cargo test
  coverage:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: actions-rs/toolchain@v1
        with:
          toolchain: stable
      - run: cargo run --manifest-path generate/Cargo.toml
      - run: cargo install cargo-tarpaulin && cargo tarpaulin --out Xml
      - uses: codecov/codecov-action@v3