Add sample examples to test redis.io build #4
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: Documentation Tests | |
on: | |
push: | |
tags-ignore: | |
- '*' | |
branches: | |
- 'doctests' | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
doctests: | |
runs-on: ubuntu-latest | |
services: | |
redis-stack: | |
image: redis/redis-stack-server:latest | |
options: >- | |
--health-cmd "redis-cli ping" --health-interval 10s --health-timeout 5s --health-retries 5 | |
ports: | |
- 6379:6379 | |
steps: | |
- name: Checkout project | |
uses: actions/checkout@v4 | |
- name: Set up Java | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
- name: Cache local Maven repository | |
uses: actions/cache@v4 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- name: Run doctests | |
run: | | |
mvn -Pdoctests test |