File tree Expand file tree Collapse file tree 4 files changed +13
-21
lines changed Expand file tree Collapse file tree 4 files changed +13
-21
lines changed Original file line number Diff line number Diff line change @@ -9,23 +9,23 @@ cargo install grcov
9
9
10
10
export RUSTFLAGS=" -Cinstrument-coverage"
11
11
export LLVM_PROFILE_FILE=" ${DESTDIR} /default_%m_%p.profraw"
12
- cargo test
12
+ # cargo test
13
13
14
14
grcov " ${DESTDIR} " \
15
- --ignore ' **/clang-sys*/**' \
16
- --ignore " $HOME /.cargo/**" \
17
- --ignore-not-existing \
18
- --ignore ' **/tests/**' \
19
- --ignore ' build.rs' \
15
+ --keep-only ' src/**' \
16
+ --ignore ' src/tests/**' \
17
+ --ignore ' src/**/tests.rs' \
20
18
--excl-start ' #(\[cfg\(test\)\]|\[test\])' \
21
- --excl-line ' unreachable\!\(\) ' \
19
+ --excl-line ' unreachable! ' \
22
20
--llvm \
23
21
--binary-path " target/debug/" \
24
22
-s . \
25
23
--branch \
26
24
-o " ${DESTDIR} " \
27
25
--token 5DOLLPIHEO \
28
- --output-types html,coveralls
26
+ --output-types html,coveralls,markdown
27
+
28
+ cat " ${DESTDIR} /markdown.md"
29
29
30
30
if [ " $( uname -o) " = " Darwin" ] && [ -z " $CI " ]; then
31
31
open " ${DESTDIR} /html/index.html"
Original file line number Diff line number Diff line change @@ -149,8 +149,8 @@ jobs:
149
149
- platform : { os_name: solaris-amd64 }
150
150
steps :
151
151
- uses : actions/checkout@v4
152
- - name : Setup Cache
153
- uses : Swatinem/ rust-cache@v2
152
+ - name : Setup Rust
153
+ uses : actions-rust-lang/setup- rust-toolchain@v1
154
154
- name : Install musl-tools on Linux
155
155
run : sudo apt-get update --yes && sudo apt-get install --yes musl-tools
156
156
if : contains(matrix.platform.name, 'musl')
Original file line number Diff line number Diff line change 11
11
steps :
12
12
- name : Checkout
13
13
uses : actions/checkout@v4
14
- - name : Setup Rust Cache
15
- uses : Swatinem/rust-cache@v2
16
14
- name : Setup Rust
17
- uses : dtolnay/rust-toolchain@stable
18
- with : { toolchain: stable }
15
+ uses : actions-rust-lang/setup-rust-toolchain@v1
19
16
- name : Package
20
17
run : cargo publish --dry-run
21
18
- name : Publish
Original file line number Diff line number Diff line change 13
13
steps :
14
14
- name : Checkout
15
15
uses : actions/checkout@v4
16
- - name : Setup Rust Cache
17
- uses : Swatinem/rust-cache@v2
18
16
- name : Setup Rust
19
- uses : dtolnay/ rust-toolchain@stable
17
+ uses : actions-rust-lang/setup- rust-toolchain@v1
20
18
with : { toolchain: "${{ matrix.toolchain }}" }
21
19
- name : Test
22
20
run : make test
27
25
steps :
28
26
- name : Checkout
29
27
uses : actions/checkout@v4
30
- - name : Setup Rust Cache
31
- uses : Swatinem/rust-cache@v2
32
28
- name : Setup Rust
33
- uses : dtolnay/ rust-toolchain@stable
29
+ uses : actions-rust-lang/setup- rust-toolchain@v1
34
30
- name : Run pre-commit
35
31
uses :
pre-commit/[email protected]
36
32
- uses : actions-rust-lang/audit@v1
41
37
uses : codecov/codecov-action@v4
42
38
with :
43
39
token : ${{ secrets.CODECOV_TOKEN }}
44
- slug : pgxn/meta
45
40
files : target/cover/coveralls
46
41
- name : Clear Badge Cache
47
42
uses : kevincobain2000/action-camo-purge@v1
You can’t perform that action at this time.
0 commit comments