Skip to content

ci: fix yaml syntax

ci: fix yaml syntax #2

Workflow file for this run

---
name: Rust
"on": # https://github.com/adrienverge/yamllint/issues/430
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
CARGO_TERM_COLOR: always
jobs:
test:
strategy:
fail-fast: false
matrix:
runs-on:
- windows-2019
- windows-2022
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v3
- name: cargo doc
env:
RUSTDOCFLAGS: "-D warnings"
run: cargo doc --all-features --no-deps --document-private-items
- name: cargo fmt
run: cargo fmt -- --check
- name: cargo clippy
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Single-process test
env:
RUST_LOG=debug

Check failure on line 36 in .github/workflows/_rust.yml

View workflow run for this annotation

GitHub Actions / Rust

Invalid workflow file

The workflow is not valid. .github/workflows/_rust.yml (Line: 36, Col: 11): Unexpected value 'RUST_LOG=debug' .github/workflows/_rust.yml (Line: 40, Col: 11): Unexpected value 'RUST_LOG=debug'
run: cargo test
- name: Multi-process test
env:
RUST_LOG=debug
run: cargo run