checkpwn_lib 0.3.0

Library to interact with the HIBP API
Documentation
on:
  # Test on PRs for any branch
  pull_request:
    branches:
      - '*'
  # Test only pushes to master branch
  push:
    branches:
      - main
  schedule:
    - cron: '0 0 * * 0' # Midnight of each sunday

name: Tests

permissions:
  contents: read

jobs:
  tests:
    name: Test Suite
    runs-on: ubuntu-latest
    strategy:
      matrix:
        rust:
          - stable
          - nightly

    steps:
      - name: Checkout sources
        uses: actions/checkout@v4
        with:
          persist-credentials: false

      - name: Install toolchain
        uses: actions-rs/toolchain@v1
        with:
          profile: minimal
          toolchain: ${{ matrix.rust }}
          override: true
      - name: Run cargo test
        env:
          API_KEY: ${{secrets.HIBP_TEST_KEY}}
        uses: actions-rs/cargo@v1
        with:
          command: test
          args: --features ci_test