Skip to content

Commit

Permalink
feat: add rust code coverage in makefile and github actions. (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
Peefy authored Jun 10, 2022
1 parent 0fd1258 commit d9180a0
Show file tree
Hide file tree
Showing 6 changed files with 411 additions and 36 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/github-actions.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: KCLVM-actions
on: [push]
on: ["push", "pull_request"]
jobs:
test-unit:
name: Test
Expand Down Expand Up @@ -35,5 +35,10 @@ jobs:
components: clippy, rustfmt
- name: Rust unit test
working-directory: ./kclvm
run: make test
run: make codecov-lcov
shell: bash
- name: Coveralls upload
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./kclvm/.kclvm/lcov.info
17 changes: 9 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,14 @@ lark_parser.pickle
/scripts/docker/kclvm-builder-centos7/crates.io-index
/scripts/docker/kclvm-builder-ubuntu/crates.io-index
*.tar.gz

# KCLVM cache and temp output
.kclvm
*.dylib
*.so
*.dll
*.lock
*.ll
*.ll.lock
_a.out.*
_a.out_*.*
# KCLVM cache
.kclvm
__main__.dylib
__main__.so
__main__.dll
__main__.lock
__main__.ll
__main__.ll.lock
Loading

0 comments on commit d9180a0

Please sign in to comment.