Derive Eq for Full Equivalence Relations #18
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: Test | |
on: | |
- push | |
- pull_request | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust-toolchain: | |
- stable | |
- beta | |
- nightly | |
feature: | |
- default | |
- memchr | |
- serde | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v1 | |
- name: Setup Rust ${{ matrix.rust-toolchain }} | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: ${{ matrix.rust-toolchain }} | |
override: true | |
- name: Setup cache for cargo | |
uses: actions/cache@v2 | |
with: | |
path: target | |
key: ${{ runner.os }}-cargo-${{ matrix.rust-toolchain }} | |
- name: Measure code coverage with ${{ matrix.feature }} feature | |
uses: actions-rs/[email protected] | |
with: | |
version: '0.16.0' | |
args: '-v --out Xml --ciserver github-actions --no-default-features --features=${{ matrix.feature }}' | |
- name: Upload coverage statistics | |
uses: codecov/codecov-action@v1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos | |
flags: rust-${{ matrix.rust-toolchain }},${{ matrix.feature }} | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v1 | |
- name: Setup Rust stable | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
components: rustfmt | |
- name: Check code format | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: --all -- --check |