Fix bug that can cause key to never expire #46
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 Build | |
on: [push, pull_request] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
services: | |
redis: | |
image: redis | |
options: >- | |
--health-cmd "redis-cli ping" | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- 6379:6379 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Cargo Test | |
run: cargo test --all-features --workspace -- --nocapture | |
env: | |
REDIS_HOST: localhost | |
REDIS_PORT: 6379 | |
- name: Cargo Format Check | |
run: cargo fmt -- --check | |
- name: Cargo Clippy Check | |
run: cargo clippy --all-features --workspace -- -D warnings | |
- name: Cargo Sort Check | |
run: cargo install cargo-sort --debug && cargo-sort --check --workspace |