coverage #739
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: coverage | |
on: | |
schedule: | |
- cron: "0 8 * * *" | |
workflow_dispatch: | |
env: | |
RUSTFLAGS: "-C instrument-coverage" | |
jobs: | |
coverage: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust: [stable] | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
- name: Environment | |
run: bin/environment.sh | |
- name: Install Prerequisites | |
run: bin/install_prerequisites_ubuntu.sh | |
- name: Install Rust | |
run: bin/install_rust.sh | |
- name: Install Grcov | |
run: bin/install_grcov.sh | |
- name: Build | |
run: cargo build | |
- name: Test Prerequisites | |
run: bin/test/test_prerequisites.sh | |
- name: Run Coverage | |
run: bin/coverage_run.sh | |
- name: Init git bot context | |
uses: crazy-max/[email protected] | |
with: | |
gpg_private_key: ${{ secrets.HURL_BOT_GPG_PRIVATE_KEY }} | |
passphrase: ${{ secrets.HURL_BOT_GPG_PRIVATE_KEY_PASSPHRASE }} | |
git_committer_name: "hurl-bot" | |
git_committer_email: "[email protected]" | |
git_user_signingkey: true | |
git_commit_gpgsign: true | |
- name: Deploy GitHub Pages | |
uses: peaceiris/[email protected] | |
with: | |
personal_token: ${{ secrets.HURL_BOT_TOKEN }} | |
user_name: 'hurl-bot' | |
user_email: '[email protected]' | |
publish_branch: github-pages | |
publish_dir: target/coverage | |
destination_dir: coverage | |
- name: Archive Artifacts | |
uses: actions/[email protected] | |
if: ${{ always() }} | |
with: | |
name: coverage | |
path: | | |
target/coverage | |
*.profraw |