Add back accidentally deleted doctests file (#2821) #66
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: | |
pull_request: | |
workflow_dispatch: | |
permissions: | |
contents: read | |
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: | |
- uses: actions/checkout@v3 | |
- uses: actions/[email protected] | |
with: | |
node-version: 18 | |
- name: Install Packages | |
run: npm ci | |
- name: Build | |
run: npm run build-all | |
- run: | | |
sudo apt update | |
sudo apt install -y redis-tools | |
- name: install doctest deps | |
run: | | |
npm install | |
working-directory: doctests | |
- name: run tests | |
run: | | |
sh run_examples.sh | |
working-directory: doctests |