Skip to content

Commit

Permalink
Merge pull request rust-scraper#67 from causal-agent/fix-github-actions
Browse files Browse the repository at this point in the history
Fix Github actions workflow
  • Loading branch information
cfvescovo committed Nov 12, 2021
2 parents 3fe8f2f + d5d2a9f commit a570279
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
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

0 comments on commit a570279

Please sign in to comment.