Skip to content

Add js list command #20

Add js list command

Add js list command #20

Workflow file for this run

name: Rust
on:
push:
branches: [ 'latest' ]
pull_request:
branches: [ 'latest' ]
concurrency:
group: rust-${{ github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
jobs:
lint:
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
steps:
- uses: actions/checkout@v4
- name: Setup Rust
run: rustup toolchain install stable --profile minimal --component clippy
- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Install SARIF utils
run: cargo install clippy-sarif sarif-fmt
- name: Run clippy
run: cargo clippy --all-features --message-format=json | clippy-sarif | tee results.sarif | sarif-fmt
- uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: results.sarif
wait-for-processing: true
unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Rust
run: rustup toolchain install stable --profile minimal
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Run tests
run: cargo llvm-cov --all-features --workspace --codecov --output-path codecov-unit.json
- name: Test docs
run: cargo test --doc
- name: Upload coverage
uses: actions/upload-artifact@v4
with:
name: codecov-unit
path: codecov-unit.json
codecov:
if: ${{ !startsWith(github.head_ref, 'dependabot/') && !startsWith(github.head_ref, 'renovate/') }}
runs-on: ubuntu-latest
needs: [unit-tests]
steps:
- uses: actions/checkout@v4
- name: Download unit coverage
uses: actions/download-artifact@v4
with:
name: codecov-unit
- name: Upload unit coverage to Codecov
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
files: codecov-unit.json
flags: unit
token: ${{ secrets.CODECOV_TOKEN }}