Skip to content

Commit e625db4

Browse files
committed
Update cover config, workflow config
1 parent 7bafdf0 commit e625db4

File tree

4 files changed

+13
-21
lines changed

4 files changed

+13
-21
lines changed

.ci/test-cover

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,23 @@ cargo install grcov
99

1010
export RUSTFLAGS="-Cinstrument-coverage"
1111
export LLVM_PROFILE_FILE="${DESTDIR}/default_%m_%p.profraw"
12-
cargo test
12+
# cargo test
1313

1414
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' \
2018
--excl-start '#(\[cfg\(test\)\]|\[test\])' \
21-
--excl-line 'unreachable\!\(\)' \
19+
--excl-line 'unreachable!' \
2220
--llvm \
2321
--binary-path "target/debug/" \
2422
-s . \
2523
--branch \
2624
-o "${DESTDIR}" \
2725
--token 5DOLLPIHEO \
28-
--output-types html,coveralls
26+
--output-types html,coveralls,markdown
27+
28+
cat "${DESTDIR}/markdown.md"
2929

3030
if [ "$(uname -o)" = "Darwin" ] && [ -z "$CI" ]; then
3131
open "${DESTDIR}/html/index.html"

.github/workflows/build-and-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ jobs:
149149
- platform: { os_name: solaris-amd64 }
150150
steps:
151151
- 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
154154
- name: Install musl-tools on Linux
155155
run: sudo apt-get update --yes && sudo apt-get install --yes musl-tools
156156
if: contains(matrix.platform.name, 'musl')

.github/workflows/cargo-publish.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,8 @@ jobs:
1111
steps:
1212
- name: Checkout
1313
uses: actions/checkout@v4
14-
- name: Setup Rust Cache
15-
uses: Swatinem/rust-cache@v2
1614
- name: Setup Rust
17-
uses: dtolnay/rust-toolchain@stable
18-
with: { toolchain: stable }
15+
uses: actions-rust-lang/setup-rust-toolchain@v1
1916
- name: Package
2017
run: cargo publish --dry-run
2118
- name: Publish

.github/workflows/test-and-lint.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,8 @@ jobs:
1313
steps:
1414
- name: Checkout
1515
uses: actions/checkout@v4
16-
- name: Setup Rust Cache
17-
uses: Swatinem/rust-cache@v2
1816
- name: Setup Rust
19-
uses: dtolnay/rust-toolchain@stable
17+
uses: actions-rust-lang/setup-rust-toolchain@v1
2018
with: { toolchain: "${{ matrix.toolchain }}" }
2119
- name: Test
2220
run: make test
@@ -27,10 +25,8 @@ jobs:
2725
steps:
2826
- name: Checkout
2927
uses: actions/checkout@v4
30-
- name: Setup Rust Cache
31-
uses: Swatinem/rust-cache@v2
3228
- name: Setup Rust
33-
uses: dtolnay/rust-toolchain@stable
29+
uses: actions-rust-lang/setup-rust-toolchain@v1
3430
- name: Run pre-commit
3531
uses: pre-commit/[email protected]
3632
- uses: actions-rust-lang/audit@v1
@@ -41,7 +37,6 @@ jobs:
4137
uses: codecov/codecov-action@v4
4238
with:
4339
token: ${{ secrets.CODECOV_TOKEN }}
44-
slug: pgxn/meta
4540
files: target/cover/coveralls
4641
- name: Clear Badge Cache
4742
uses: kevincobain2000/action-camo-purge@v1

0 commit comments

Comments
 (0)