Skip to content

Disallow optional-chaining as assignment target and add tests #74

Disallow optional-chaining as assignment target and add tests

Disallow optional-chaining as assignment target and add tests #74

Workflow file for this run

name: Rust
on:
push:
pull_request:
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- name: rustfmt
if: ${{ !cancelled() }}
run: cargo fmt -- --check
- name: clippy
if: ${{ !cancelled() }}
run: cargo clippy --all-features -- -D warnings
- name: build
if: ${{ !cancelled() }}
run: cargo build --verbose --all-features --all-targets --tests --examples
- name: test
if: ${{ !cancelled() }}
run: cargo test --verbose --all-features --all-targets
- name: Abort on error
if: ${{ failure() }}
run: echo "Some of jobs failed" && false