Skip to content

Commit

Permalink
Update build workflow (#9)
Browse files Browse the repository at this point in the history
- Check code formats
- Check code lints
- Report coverage data to codecov.io
  • Loading branch information
iyangsj committed Nov 1, 2023
1 parent 4fba536 commit bb0d8c9
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,26 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: 'recursive'

- name: Code format check
run: cargo fmt --check

- name: Build TQUIC library
run: cargo build -F ffi --verbose

- name: Build TQUIC examples
run: cargo build --all --verbose
- name: Run tests

- name: Code lint check
run: cargo clippy

- name: Run unit tests
run: cargo test --verbose

- name: Report coverage
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
cargo install cargo-tarpaulin
cargo tarpaulin --exclude-files "src/third_party/*" --out Xml
bash <(curl -s https://codecov.io/bash) -X gcov -t $CODECOV_TOKEN

0 comments on commit bb0d8c9

Please sign in to comment.