Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ name: Nightly Checks
on:
schedule:
# Every night at midnight
- cron: '0 0 * * *'
- cron: "0 0 * * *"
workflow_dispatch:

jobs:
dependencies:
Expand Down Expand Up @@ -33,3 +34,11 @@ jobs:
run: cargo install cargo-audit
- name: Execute cargo audit
run: cargo audit

coverage:
name: Calculate coverage from tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Execute tarpaulin
run: ./tests/coverage.sh
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/target
*patch
Cargo.lock
cobertura.xml
12 changes: 12 additions & 0 deletions tests/coverage.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we put those lines directly in the GitHub Actions file? Or is it useful to execute locally?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we want to execute locally too! If you're writing tests 🤡


# Copyright 2021 Contributors to the Parsec project.
# SPDX-License-Identifier: Apache-2.0

set -euf -o pipefail

cargo install cargo-tarpaulin

cargo tarpaulin --tests --out Xml --exclude-files="src/core/testing/*"

bash <(curl -s https://codecov.io/bash)