You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
Add Redis.io code examples
- Add set & get example - Use bash script to test doc tests - Add package.json to doctests - Add search-quickstart
This commit is contained in:
41
.github/workflows/doctests.yml
vendored
Normal file
41
.github/workflows/doctests.yml
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
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/setup-node@v2.3.0
|
||||
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
|
Reference in New Issue
Block a user