feat: Add Bound api #32
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
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 }} |