-
Notifications
You must be signed in to change notification settings - Fork 42
81 lines (69 loc) · 2.1 KB
/
codecov.yaml
File metadata and controls
81 lines (69 loc) · 2.1 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
80
81
name: codecov
on:
push:
paths-ignore:
- '**/*.md'
- 'etc/**'
branches:
- main
pull_request:
paths-ignore:
- '**/*.md'
- 'etc/**'
branches:
- main
env:
CARGO_TERM_COLOR: always
jobs:
ci:
runs-on: ubuntu-24.04
steps:
- name: Maximize build space
run: |
df -h
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/ghc
sudo rm -rf /opt/hostedtoolcache/CodeQL
sudo rm -rf /opt/hostedtoolcache/go
sudo rm -rf /opt/hostedtoolcache/node
sudo rm -rf /usr/local/lib/node_modules
sudo rm -rf /usr/local/share/powershell
sudo docker image prune --all --force
sudo rm -Rf ${JAVA_HOME_8_X64}
sudo rm -Rf ${JAVA_HOME_11_X64}
sudo rm -Rf ${JAVA_HOME_17_X64}
sudo rm -Rf ${RUBY_PATH}
sudo apt purge -y \
firefox \
google-chrome-stable \
microsoft-edge-stable
df -h
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
with:
key: tarpaulin
- name: Cache Theseus Postgresql Installation
uses: actions/cache@v4
with:
path: ~/.theseus/postgresql
key: ${{ runner.os }}-theseus-postgresql-${{ hashFiles('**/Cargo.lock') }}
- name: Start minio
run: |
docker compose -f etc/deploy/compose/compose-minio.yaml up -d --wait
- uses: taiki-e/install-action@v2
with:
tool: cargo-llvm-cov
- name: Install llvm-tools-preview
run: |
rustup component add llvm-tools-preview
- name: Test
# use only one job, trying to reduce memory usage
run: cargo llvm-cov --codecov --jobs 1 --all-features --output-path codecov.json
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" # for embedded postgresql
- uses: codecov/codecov-action@v5
if: github.repository_owner == 'guacsec'
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: guacsec/trustify