Add unread_decoded_data
methods to decoders
#65
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Based on https://github.com/actions-rs/meta/blob/master/recipes/quickstart.md | |
name: CI | |
on: [push, pull_request] | |
jobs: | |
check: | |
name: Check | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
toolchain: [stable, beta, nightly] | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v1 | |
- 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 | |
test: | |
name: Test Suite | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
toolchain: [stable, beta, nightly] | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v1 | |
- 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 | |
lints: | |
name: Lints | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
toolchain: [stable, beta, nightly] | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v1 | |
- 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 | |
if: matrix.toolchain == 'beta' | |
uses: actions-rs/cargo@v1 | |
with: | |
command: clippy | |
# As `return_self_not_must_use` became `pedantic` in the 1.60.0-nightly channel, | |
# we allow the warning to avoid unnecessary code fixes. | |
# See: https://github.com/rust-lang/rust-clippy/issues/8197 | |
# | |
# TODO: Remove this branch once stable-1.59.0 is released. | |
args: --all-features --all -- -D warnings --allow clippy::return_self_not_must_use | |
- name: Run cargo clippy | |
if: matrix.toolchain != 'beta' | |
uses: actions-rs/cargo@v1 | |
with: | |
command: clippy | |
args: --all-features --all -- -D warnings |