Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/actions-rs/grcov.yml

This file was deleted.

109 changes: 11 additions & 98 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
3 changes: 0 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ categories = ["encoding"]
license = "MIT"
edition = "2021"

[badges]
coveralls = {repository = "sile/stun_codec"}

[dependencies]
bytecodec = "0.5"
byteorder = "1"
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down