feat: support temporal score and Environmental Score #1521
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: rustsec | |
on: | |
pull_request: | |
paths: | |
- ".github/workflows/rustsec.yml" | |
- "cargo-lock/**" | |
- "cvss/**" | |
- "platforms/**" | |
- "rustsec/**" | |
- "Cargo.*" | |
push: | |
branches: main | |
defaults: | |
run: | |
working-directory: rustsec | |
env: | |
RUSTFLAGS: -D warnings | |
RUSTDOCFLAGS: -D warnings | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust: | |
- 1.70.0 # MSRV | |
- stable | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust }} | |
override: true | |
profile: minimal | |
- uses: Swatinem/rust-cache@v2 | |
- run: cargo check | |
- run: cargo test --no-default-features | |
- run: cargo test | |
- run: cargo test --all-features | |
doc: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: 1.70.0 # MSRV | |
override: true | |
profile: minimal | |
- uses: Swatinem/rust-cache@v2 | |
- run: cargo doc --all-features |