Skip to content

Update upstash redis #12

Update upstash redis

Update upstash redis #12

Workflow file for this run

name: Build, Test for Main
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
env:
SRH_TOKEN: example_token
jobs:
container-job:
runs-on: ubuntu-latest
container: denoland/deno
services:
redis:
image: redis/redis-stack-server:6.2.6-v6 # 6.2 is the Upstash compatible Redis version
srh:
image: hiett/serverless-redis-http:latest
env:
SRH_MODE: env # We are using env mode because we are only connecting to one server.
SRH_TOKEN: ${{ env.SRH_TOKEN }}
SRH_CONNECTION_STRING: redis://redis:6379
steps:
- name: Check out code
uses: actions/checkout@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 2 # You can place your normal testing steps here. In this example, we are running SRH against the upstash/upstash-redis test suite.
- uses: pnpm/[email protected]
with:
version: 7.4.0
- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
node-version: 16
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm build
- name: Build Types
run: pnpm types
- name: Test
run: pnpm test
env:
UPSTASH_REDIS_REST_URL: http://srh:80
UPSTASH_REDIS_REST_TOKEN: ${{ env.SRH_TOKEN }}