Skip to content

fix: supplement the key field of the returned result #37

fix: supplement the key field of the returned result

fix: supplement the key field of the returned result #37

Workflow file for this run

name: Rust
on: [push, pull_request]
jobs:
check:
runs-on: ubuntu-latest
strategy:
matrix:
toolchain: [stable, beta, nightly]
steps:
- uses: actions/checkout@v1
- name: Install rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
override: true
components: rustfmt, clippy
- name: format
# switch to `action-rs/rustfmt-check` once that is available
uses: actions-rs/cargo@v1
with:
command: fmt
args: >-
--
--check
- name: clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: clippy-${{ matrix.toolchain }}
args: >-
--bins
--examples
--tests
--benches
--
-W missing_docs
test:
runs-on: ubuntu-latest
strategy:
matrix:
toolchain: [stable, beta, nightly]
steps:
- uses: actions/checkout@v1
- name: Install rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
override: true
- name: test
uses: actions-rs/cargo@v1
with:
command: test
- name: bench
uses: actions-rs/cargo@v1
with:
command: test
args: >-
--benches
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: tarpaulin
uses: actions-rs/tarpaulin@v0.1
- name: upload
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}