forked from Orange-OpenSource/hurl
-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (62 loc) · 1.83 KB
/
coverage.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
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/checkout@v3
- name: Environment
run: bin/environment.sh
- name: Install Prerequisites
run: bin/install_prerequisites_ubuntu.sh
- name: Install Rust
run: bin/install_rust_latest.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 Integration Tests
run: |
export LLVM_PROFILE_FILE="hurl-test-integration-%p-%m.profraw"
export PATH="$PWD/target/debug:$PATH"
bin/test/test_integ.sh
- name: Build Report
run: |
grcov . --binary-path target/debug -s . -t html --branch --ignore-not-existing -o ./coverage/
- name: Init git bot context
uses: crazy-max/ghaction-import-gpg@v5
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/actions-gh-pages@v3
with:
personal_token: ${{ secrets.HURL_BOT_TOKEN }}
user_name: 'hurl-bot'
user_email: '[email protected]'
publish_branch: github-pages
publish_dir: coverage
destination_dir: coverage
- name: Archive Artifacts
uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: coverage
path: |
coverage
*.profraw