update packages to support node v22 #22
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: 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@v4 | |
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/action-setup@v4 | |
with: | |
version: 9 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
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 }} |