Optimize is_bogon
by 10-100x
#13
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: Rust lints and tests | |
on: | |
pull_request: | |
branches: [ master ] | |
push: | |
branches: [ master ] | |
permissions: | |
contents: read | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run Clippy | |
env: | |
RUSTFLAGS: "-Dwarnings" | |
run: cargo clippy | |
- name: Check formatting | |
run: cargo fmt --check | |
- name: Build | |
run: cargo build --verbose | |
- name: Run tests | |
env: | |
IPINFO_TOKEN: ${{ secrets.IPINFO_TOKEN }} | |
run: cargo test --verbose |