ci: workflows updated new api key #10
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: Rust CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
components: clippy | |
- name: Install dependencies | |
run: apt-get update -y && apt-get install -y \ | |
libssl-dev \ | |
ca-certificates \ | |
libudev-dev \ | |
libusb-1.0-0-dev \ | |
pkg-config \ | |
libudev-dev \ | |
build-essential | |
- name: Build the project | |
run: cargo build --verbose | |
- name: Run tests | |
run: cargo test --verbose | |
- name: Run clippy | |
run: cargo clippy -- -D warnings | |
- name: Install cargo audit | |
run: | | |
cargo install cargo-audit | |
- name: Run cargo audit | |
run: cargo audit |