Skip to content

Commit

Permalink
Back to coveralls and just skip trybuild on nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
timonv committed Dec 11, 2024
1 parent 945319c commit f0dcfd3
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,10 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-coverage
cancel-in-progress: true

env:
TRYBUILD: overwrite

jobs:
test:
name: coverage
runs-on: ubuntu-24.04
runs-on: ubuntu-latest
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
Expand All @@ -26,15 +23,18 @@ jobs:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
components: llvm-tools-preview rust-src
components: llvm-tools-preview
- name: Install Protoc
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install tarpaulin
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@v2
with:
tool: cargo-tarpaulin
tool: cargo-llvm-cov
- name: Generate code coverage
run: |
cargo +nightly tarpaulin --frozen --tests -j 2 --all-features --skip-clean --coveralls ${{ secrets.COVERALLS_REPO_TOKEN}} --engine llvm --post-test-delay 10
cargo +nightly llvm-cov --tests -j 2 --all-features --lcov --output-path lcov.info
- name: Coveralls
uses: coverallsapp/github-action@v2
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions swiftide-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ serde_json = { workspace = true, optional = true }

[dev-dependencies]
pretty_assertions.workspace = true
rustversion = "1.0.18"
trybuild = "1.0"
prettyplease = "0.2.25"
insta.workspace = true
Expand Down
2 changes: 2 additions & 0 deletions swiftide-macros/tests/tool.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#[rustversion::attr(not(nightly), ignore)]
#[test]
fn test_tool() {
let t = trybuild::TestCases::new();
Expand All @@ -8,6 +9,7 @@ fn test_tool() {
t.compile_fail("tests/tool/tool_missing_parameter_fail.rs");
}

#[rustversion::attr(not(nightly), ignore)]
#[test]
fn test_tool_derive() {
let t = trybuild::TestCases::new();
Expand Down

0 comments on commit f0dcfd3

Please sign in to comment.