-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (53 loc) · 1.74 KB
/
Copy pathcovecode.yml
File metadata and controls
63 lines (53 loc) · 1.74 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
name: coverage
on: [push]
jobs:
test:
name: coverage
runs-on: ubuntu-latest
container:
image: xd009642/tarpaulin:develop-nightly
options: --security-opt seccomp=unconfined
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Node.js setup
uses: actions/setup-node@v1
with:
node-version: 20
- name: Rust setup
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Install dependencies (ubuntu only)
run: |
apt-get update
apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf libpcap-dev
- name: Install app dependencies and build web
run: |
npm install -g yarn
yarn && yarn build
shell: bash --noprofile --norc -e -o pipefail {0}
- name: Debug information
run: |
pwd
echo "pwd exit status: $?"
ls -a
echo "LS exit status: $?"
shell: bash --noprofile --norc -e -o pipefail {0}
# Combine directory change with Rust project build in a single step
- name: Build Rust project in src-tauri directory
run: |
cd src-tauri
cargo build --verbose
ls -a # List contents to verify
shell: bash --noprofile --norc -e -o pipefail {0}
- name: Generate code coverage
run: |
cd src-tauri
cargo +nightly tarpaulin --verbose --all-features --workspace --timeout 120 --out xml
shell: bash --noprofile --norc -e -o pipefail {0}
- name: Upload to codecov.io
uses: codecov/codecov-action@v2
with:
token: ${{secrets.CODECOV_TOKEN}}
fail_ci_if_error: true