From 52d0764f9a2b06081341289ee5ba17e40894ae63 Mon Sep 17 00:00:00 2001 From: Takeru Ohta Date: Tue, 6 May 2025 17:47:54 +0900 Subject: [PATCH] Remove coveralls integration and simplify CI workflow --- .github/actions-rs/grcov.yml | 3 - .github/workflows/ci.yml | 109 ++++------------------------------- Cargo.toml | 3 - README.md | 1 - 4 files changed, 11 insertions(+), 105 deletions(-) delete mode 100644 .github/actions-rs/grcov.yml diff --git a/.github/actions-rs/grcov.yml b/.github/actions-rs/grcov.yml deleted file mode 100644 index 7b5f273..0000000 --- a/.github/actions-rs/grcov.yml +++ /dev/null @@ -1,3 +0,0 @@ -ignore-not-existing: true -ignore: - - "../*" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8bd34f9..a127045 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,11 +1,6 @@ -# Based on https://github.com/actions-rs/meta/blob/master/recipes/quickstart.md - name: CI -on: - push: - branches: [master] - pull_request: +on: [push] jobs: check: @@ -16,20 +11,9 @@ jobs: toolchain: [stable, beta, nightly] steps: - name: Checkout sources - uses: actions/checkout@v2 - - - name: Install ${{ matrix.toolchain }} toolchain - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: ${{ matrix.toolchain }} - override: true - - - name: Run cargo check - uses: actions-rs/cargo@v1 - with: - command: check - args: --all-features --all + uses: actions/checkout@v4 + - run: rustup update ${{ matrix.toolchain }} + - run: cargo check --all test: name: Test Suite @@ -39,20 +23,9 @@ jobs: toolchain: [stable, beta, nightly] steps: - name: Checkout sources - uses: actions/checkout@v2 - - - name: Install ${{ matrix.toolchain }} toolchain - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: ${{ matrix.toolchain }} - override: true - - - name: Run cargo test - uses: actions-rs/cargo@v1 - with: - command: test - args: --all-features --all + uses: actions/checkout@v4 + - run: rustup update ${{ matrix.toolchain }} + - run: cargo test --all lints: name: Lints @@ -62,67 +35,7 @@ jobs: toolchain: [stable, beta, nightly] steps: - name: Checkout sources - uses: actions/checkout@v2 - - - name: Install ${{ matrix.toolchain }} toolchain - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: ${{ matrix.toolchain }} - override: true - components: rustfmt, clippy - - - name: Run cargo fmt - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check - - - name: Run cargo clippy - uses: actions-rs/cargo@v1 - with: - command: clippy - args: --all-features --all -- -D warnings - - grcov: - name: Coverage - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - - name: Install toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly - override: true - - - name: Execute tests - uses: actions-rs/cargo@v1 - with: - command: test - args: --all --all-features - env: - CARGO_INCREMENTAL: 0 - RUSTFLAGS: "-Zprofile -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort" - RUSTDOCFLAGS: "-Cpanic=abort" - - - name: Gather coverage data - id: coverage - uses: actions-rs/grcov@v0.1 - - - name: Coveralls upload - uses: coverallsapp/github-action@master - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - parallel: true - path-to-lcov: ${{ steps.coverage.outputs.report }} - - grcov_finalize: - runs-on: ubuntu-latest - needs: grcov - steps: - - name: Coveralls finalization - uses: coverallsapp/github-action@master - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - parallel-finished: true + uses: actions/checkout@v4 + - run: rustup update ${{ matrix.toolchain }} + - run: cargo fmt --all -- --check + - run: cargo clippy --all -- -D warnings diff --git a/Cargo.toml b/Cargo.toml index 0c7c1e7..2431448 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,9 +11,6 @@ categories = ["encoding"] license = "MIT" edition = "2021" -[badges] -coveralls = {repository = "sile/stun_codec"} - [dependencies] bytecodec = "0.5" byteorder = "1" diff --git a/README.md b/README.md index 612a068..b8a6634 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,6 @@ stun_codec [![stun_codec](https://img.shields.io/crates/v/stun_codec.svg)](https://crates.io/crates/stun_codec) [![Documentation](https://docs.rs/stun_codec/badge.svg)](https://docs.rs/stun_codec) [![Actions Status](https://github.com/sile/stun_codec/workflows/CI/badge.svg)](https://github.com/sile/stun_codec/actions) -[![Coverage Status](https://coveralls.io/repos/github/sile/stun_codec/badge.svg?branch=master)](https://coveralls.io/github/sile/stun_codec?branch=master) [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE) Encoders and decoders for [STUN (RFC 5389)][RFC 5389] and its extensions.