Skip to content

Bump rayon from 1.7.0 to 1.8.1 (#123) #219

Bump rayon from 1.7.0 to 1.8.1 (#123)

Bump rayon from 1.7.0 to 1.8.1 (#123) #219

Workflow file for this run

name: Test
on:
pull_request:
push:
branches:
- master
permissions:
contents: read
# Write permissions are required in order to produce annotations.
checks: write
jobs:
rust:
runs-on: ubuntu-20.04
steps:
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.71.0
components: rustfmt, clippy
default: true
- name: Checkout git repository
uses: actions/checkout@master
- name: Check Rust formatting
run: cargo fmt -- --check
- name: Install cargo-deny
run: |
wget https://github.com/EmbarkStudios/cargo-deny/releases/download/0.12.1/cargo-deny-0.12.1-x86_64-unknown-linux-musl.tar.gz
tar -xvf cargo-deny-0.12.1-x86_64-unknown-linux-musl.tar.gz
mkdir -p ~/bin/
cp cargo-deny-0.12.1-x86_64-unknown-linux-musl/cargo-deny ~/bin/
rm -r cargo-deny-*
echo "$HOME/bin" >> $GITHUB_PATH
- name: Cache dependencies
uses: Swatinem/rust-cache@v1
- name: Deny duplicate dependencies and check licenses
run: cargo deny --locked check
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
# TODO: re-enable some the -A lints below once we're clean on other
# more important ones.
args: |
--all-features --all-targets --locked --release --
-D clippy::perf
-D clippy::style
-D clippy::wildcard_imports
-W future_incompatible
-W nonstandard_style
-W rust_2018_compatibility
-W rust_2021_compatibility
-F clippy::unused_io_amount
-D clippy::redundant_closure_for_method_calls
-A clippy::comparison_chain
- name: Build tests
run: cargo test --no-run --frozen --release
- name: Run Rust tests
run: cargo test --frozen --release -- --nocapture