name: CI
on:
push:
pull_request:
schedule:
- cron: '00 01 * * *'
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
- beta
- nightly
services:
redis:
image: redis
ports:
- 6379/tcp
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{matrix.rust}}
components: rustfmt, clippy
- name: Check
run: cargo check
- name: Format
run: cargo fmt -- --check
- name: Clippy
run: cargo clippy --all-features -- -D warnings
- name: Test
env:
SEANCE_REDIS_ADDRESS: redis://127.0.0.1:${{ job.services.redis.ports[6379] }}
run: cargo test --all-features