15
15
jobs :
16
16
build :
17
17
runs-on : ubuntu-latest
18
- container :
19
- image : xd009642/tarpaulin:develop-nightly
20
- options : --security-opt seccomp=unconfined
21
-
22
18
steps :
23
19
- name : 📁 Checkout
24
20
uses : actions/checkout@v3
21
+ with :
22
+ repo-token : ${{ secrets.GITHUB_TOKEN }}
25
23
26
24
- name : ⚡ Cache
27
25
uses : actions/cache@v3
@@ -34,36 +32,44 @@ jobs:
34
32
~/.cargo/registry/index/
35
33
~/.cargo/registry/cache/
36
34
~/.cargo/git/db/
37
- .cargo/
38
- target/
35
+ target/
39
36
40
37
- name : 🔧 Install protoc
41
- uses : arduino/setup-protoc@v1
38
+
39
+ with :
40
+ repo-token : ${{ secrets.GITHUB_TOKEN }}
42
41
43
42
- name : 🔨 Install tools
44
43
run : |
45
- apt update && apt install sudo
46
- sudo apt install libssl-dev build-essential cmake pkg-config llvm-dev libclang-dev clang mosquitto-dev libmosquitto-dev libsqlite3-dev -y
47
-
44
+ sudo apt update \
45
+ && sudo apt install libssl-dev build-essential cmake pkg-config llvm-dev libclang-dev clang libmosquitto-dev libsqlite3-dev -y \
46
+ && cargo install --locked cargo-audit || true \
47
+ && cargo install cargo-tarpaulin
48
+
49
+ - name : 🔐 Run audit
50
+ run : |
51
+ cargo audit
52
+
48
53
- name : 🔎 Run tests
49
54
run : |
50
- cargo +nightly tarpaulin --workspace --timeout 120 --out xml
55
+ cargo tarpaulin --workspace --timeout 120 --skip-clean --out xml
51
56
52
57
- name : ☁ Codecov
53
58
uses : codecov/codecov-action@v3
54
59
with :
55
60
token : ${{secrets.CODECOV_TOKEN}}
61
+ verbose : true
56
62
57
63
tag :
58
64
needs : [build]
59
65
runs-on : ubuntu-latest
60
66
steps :
61
- - name : Checkout
67
+ - name : 📁 Checkout
62
68
uses : actions/checkout@v2
63
69
with :
64
70
fetch-depth : ' 0'
65
71
66
- - name : Pre release
72
+ - name : ⚙ Pre release
67
73
if : ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/develop'}}
68
74
uses : anothrNick/github-tag-action@v1
69
75
env :
72
78
WITH_V : true
73
79
PRERELEASE : true
74
80
75
- - name : Patch release
81
+ - name : ⚙ Patch release
76
82
if : ${{ github.ref == 'refs/heads/develop' }}
77
83
uses : anothrNick/github-tag-action@v1
78
84
env :
81
87
WITH_V : true
82
88
PRERELEASE : true
83
89
84
- - name : Minor release
90
+ - name : ⚙ Minor release
85
91
if : ${{ github.ref == 'refs/heads/main' }}
86
92
uses : anothrNick/github-tag-action@v1
87
93
env :
0 commit comments