Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Github actions workflow #67

Merged
merged 2 commits into from
Nov 12, 2021
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
26 changes: 17 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,39 @@ on:
- "master"

jobs:
format_and_lint:
name: Format and lint
format:
name: Format code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install latest nightly
- name: Install latest stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy
components: rustfmt
- uses: Swatinem/rust-cache@v1
- name: Check formating
- name: Check formatting
run: cargo fmt -- --check
- name: Lint
run: cargo clippy -- -D warnings
clippy_check:
name: Clippy check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: rustup component add clippy
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features
test:
runs-on: ubuntu-latest
strategy:
matrix:
rust_version: [1.36.0, stable, beta, nightly]
rust_version: [stable, beta, nightly]
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Install latest nightly
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{matrix.rust_version}}
Expand Down
1 change: 0 additions & 1 deletion src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,6 @@ impl fmt::Debug for Text {
pub type Attributes = indexmap::IndexMap<QualName, StrTendril>;

/// A Map of attributes that doesn't preserve the order of the attributes.
///
/// Please enable the `deterministic` feature for order-preserving
/// (de)serialization.
#[cfg(not(feature = "deterministic"))]
Expand Down