Skip to content

next

next #22

Workflow file for this run

name: test
on: [push]
jobs:
test:
runs-on: ubuntu-latest
container: node:20-alpine
services:
redis-stack:
image: redis/redis-stack:7.2.0-v12
ports:
- 6379:6379
redis-8:
image: redis:8.0-M01
ports:
- 6380:6379
steps:
- uses: actions/checkout@v4
- run: yarn install --frozen-lockfile
- run: yarn compile
- run: yarn test:all
env:
REDIS_HOST: redis-stack
REDIS_PORT: 6379
- run: yarn test:coverage
env:
REDIS_HOST: redis-8
REDIS_PORT: 6378
# for codecov
- run: apk add git curl gnupg coreutils
- uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
file: ./coverage/lcov.info
os: alpine
token: ${{ secrets.CODECOV_TOKEN }}