Skip to content

Update rustc to nightly-2024-12-15 #1294

Update rustc to nightly-2024-12-15

Update rustc to nightly-2024-12-15 #1294

Workflow file for this run

name: Test
env:
RUST_BACKTRACE: 1
on:
push:
branches: [main, staging, trying]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
- name: Check out the repo
uses: actions/checkout@v2
- name: Build with cargo
run: cargo build --all --verbose
- name: Run cargo tests
run: cargo test --all --verbose
- name: Check formatting
run: |
if rustfmt --help ; then
cargo fmt -- --check
fi
- name: Check extractor
run: python3 extractor-test/test_extractor.py
- name: Compile the example packages
run: |
mkdir ../workspace
cp CrateList-example.json CrateList.json
cargo run -- compile
- name: Create a database
run: cargo run --release -- update-database
- name: Run existing queries
run: cargo run --release -- query all
security_audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}