Skip to content

ci: add matric to github action #20

ci: add matric to github action

ci: add matric to github action #20

Workflow file for this run

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