-
Notifications
You must be signed in to change notification settings - Fork 734
79 lines (64 loc) · 2 KB
/
Copy pathcoverage.yml
File metadata and controls
79 lines (64 loc) · 2 KB
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
76
77
78
79
name: coverage
on:
push:
branches:
- master
workflow_dispatch:
permissions: {}
env:
RUSTFLAGS: "-C instrument-coverage"
jobs:
coverage:
runs-on: ubuntu-latest
strategy:
matrix:
rust: [stable]
steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 #v7.0.1
with:
persist-credentials: false
- name: Install Prerequisites
run: bin/install_prerequisites_ubuntu.sh
- name: Install Python 3.11
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 #v7.0.0
with:
python-version: '3.11'
- name: Tests prerequisites
run: bin/test/test_prerequisites.sh
- name: Install Rust
run: bin/install_rust.sh
- name: Install Grcov
run: bin/install_grcov.sh
- name: Environment
run: bin/environment.sh
- name: Build
run: cargo build
- name: Run Coverage
run: bin/coverage_run.sh
- name: Init git bot context
uses: crazy-max/ghaction-import-gpg@2dc316deee8e90f13e1a351ab510b4d5bc0c82cd #v7.0.0
with:
gpg_private_key: ${{ secrets.HURL_BOT_GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.HURL_BOT_GPG_PRIVATE_KEY_PASSPHRASE }}
git_committer_name: ${{ secrets.HURL_BOT_USER }}
git_committer_email: ${{ secrets.HURL_BOT_EMAIL }}
git_user_signingkey: true
git_commit_gpgsign: true
- name: Deploy GitHub Pages
uses: peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453 #v4.1.0
with:
personal_token: ${{ secrets.HURL_BOT_TOKEN }}
user_name: 'hurl-bot'
user_email: 'bot@hurl.dev'
publish_branch: github-pages
publish_dir: target/coverage
destination_dir: coverage
- name: Archive Artifacts
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a #v7.0.1
if: ${{ always() }}
with:
name: coverage
path: |
target/coverage
*.profraw