Skip to content

ci(antipattern): broaden TS allowlist (cli/, mod.ts, lsp-server, *vsc… #248

ci(antipattern): broaden TS allowlist (cli/, mod.ts, lsp-server, *vsc…

ci(antipattern): broaden TS allowlist (cli/, mod.ts, lsp-server, *vsc… #248

Workflow file for this run

<<<<<<< HEAD
# SPDX-License-Identifier: PMPL-1.0-or-later
=======
# SPDX-License-Identifier: MPL-2.0-or-later
>>>>>>> 1637fa5 (chore: sync from parent repo automation)

Check failure on line 5 in .github/workflows/rust-ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/rust-ci.yml

Invalid workflow file

You have an error in your yaml syntax on line 5
name: Rust CI
on: [push, pull_request]
permissions:
contents: read
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: -Dwarnings
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: dtolnay/rust-toolchain@efa25f7f19611383d5b0ccf2d1c8914531636bf9 # stable
with:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@85fb4247b71961ec8fe7c885c0814d47486c6ce0 # v2
- name: Check formatting
run: cargo fmt --all -- --check
- name: Clippy lints
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Run tests
run: cargo test --all-features
- name: Build release
run: cargo build --release
security:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: dtolnay/rust-toolchain@efa25f7f19611383d5b0ccf2d1c8914531636bf9 # stable
- name: Install cargo-audit
run: cargo install cargo-audit
- name: Security audit
run: cargo audit
- name: Check for outdated deps
run: cargo install cargo-outdated && cargo outdated --exit-code 1 || true
coverage:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: dtolnay/rust-toolchain@efa25f7f19611383d5b0ccf2d1c8914531636bf9 # stable
- name: Install tarpaulin
run: cargo install cargo-tarpaulin
- name: Generate coverage
run: cargo tarpaulin --out Xml
- uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5
with:
files: cobertura.xml