Bump the minor group across 1 directory with 4 updates #66
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: Run CI checks | |
on: pull_request | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install tooling | |
run: | | |
cargo install cargo-audit | |
- name: Rustfmt | |
run: cargo fmt -- --check | |
- name: Clippy | |
run: cargo clippy --all-targets --all-features | |
- name: Package Audit | |
run: | | |
mkdir -p ~/.cargo | |
cp .cargo/audit.toml ~/.cargo/audit.toml | |
cargo audit | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Download GeoDB | |
env: | |
GEOLITE_API_KEY: ${{ secrets.GEOLITE_API_KEY }} | |
run: | | |
echo "::add-mask::${GEOLITE_API_KEY}" | |
if [ "${GEOLITE_API_KEY}" == "" ]; then | |
echo "GEOLITE_API_KEY env var required" | |
exit 1 | |
fi | |
URL="https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country&license_key=${GEOLITE_API_KEY}&suffix=tar.gz" | |
curl -L "$URL" --output geolite.tar.gz | |
tar --strip-components=1 --wildcards -zxvf geolite.tar.gz -- '*/GeoLite2-Country.mmdb' | |
- name: Build | |
run: cargo build --release | |
- name: Test | |
run: cargo test --release |